Folder actions for document list

- support for declarative folder actions
- folder actions dropdown menu
- readme file updates

refs #
This commit is contained in:
Denys Vuika
2016-04-27 12:02:20 +01:00
parent ecaa4837af
commit 992f265d75
31 changed files with 546 additions and 58 deletions

View File

@@ -64,6 +64,10 @@ import {MDL} from 'ng2-alfresco-core/material';
[navigate]="navigation"
[downloads]="downloads"
(itemClick)="onItemClick($event)">
<folder-actions>
<folder-action title="Default folder action 1" handler="system1"></folder-action>
<folder-action title="Custom folder action" (execute)="myFolderAction1($event)"></folder-action>
</folder-actions>
<document-actions>
<document-action title="System action" handler="system2"></document-action>
<document-action title="Custom action" (execute)="myCustomAction1($event)"></document-action>
@@ -92,6 +96,10 @@ export class FilesComponent {
}
myCustomAction1(event) {
alert('Custom action for ' + event.value.displayName);
alert('Custom document action for ' + event.value.displayName);
}
myFolderAction1(event) {
alert('Custom folder action for ' + event.value.displayName);
}
}