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:
Denys Vuika
2016-05-03 15:15:23 +01:00
parent 43344881e9
commit 0ff5701900
13 changed files with 123 additions and 12 deletions

View File

@@ -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);