mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2557] Updated docs with new props script (#3149)
* [ADF-2557] Updated docs for services with new props script * [ADF-2557] Updated service docs with new props script
This commit is contained in:
committed by
Eugenio Romano
parent
8769c257f8
commit
1d517d3a8a
@@ -44,6 +44,7 @@ export class FolderActionsService {
|
||||
/**
|
||||
* Gets the handler function for an action.
|
||||
* @param key Identifier for the action
|
||||
* @returns The handler function
|
||||
*/
|
||||
getHandler(key: string): ContentActionHandler {
|
||||
if (key) {
|
||||
@@ -57,6 +58,7 @@ export class FolderActionsService {
|
||||
* Sets a new handler function for an action.
|
||||
* @param key Identifier for the action
|
||||
* @param handler The new handler function
|
||||
* @returns True if the key was a valid action identifier, false otherwise
|
||||
*/
|
||||
setHandler(key: string, handler: ContentActionHandler): boolean {
|
||||
if (key) {
|
||||
@@ -70,6 +72,7 @@ export class FolderActionsService {
|
||||
/**
|
||||
* Checks if an action is available for a particular item.
|
||||
* @param obj Item to check
|
||||
* @returns True if the action is available, false otherwise
|
||||
*/
|
||||
canExecuteAction(obj: any): boolean {
|
||||
return this.documentListService && obj && obj.entry.isFolder === true;
|
||||
|
Reference in New Issue
Block a user