mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Customisation of global actions (folders and documents)
- support for registering custom global actions (folders, documents) - documentation update with code samples and pictures refs #9
This commit is contained in:
@@ -35,6 +35,13 @@ export class DocumentActionsService {
|
||||
return null;
|
||||
}
|
||||
|
||||
setHandler(key: string, handler: ContentActionHandler): void {
|
||||
if (key) {
|
||||
let lkey = key.toLowerCase();
|
||||
this.handlers[lkey] = handler;
|
||||
}
|
||||
}
|
||||
|
||||
private setupActionHandlers() {
|
||||
this.handlers['download'] = this.download.bind(this);
|
||||
|
||||
|
Reference in New Issue
Block a user