diff --git a/ng2-components/ng2-alfresco-documentlist/README.md b/ng2-components/ng2-alfresco-documentlist/README.md index 6e6550f0c0..5c654b4882 100644 --- a/ng2-components/ng2-alfresco-documentlist/README.md +++ b/ng2-components/ng2-alfresco-documentlist/README.md @@ -210,6 +210,23 @@ DocumentList provides simple breadcrumb element to indicate the current position Parent folder button is not displayed when breadcrumb is enabled. +### Creation Menu Action + +DocumentList provides simple creation menu actions that provide the action to create a new folder. + +```html + + +``` + +![Creation Menu Action](docs/assets/document-list-creation-menu-actions-1.png) + +When the "New Folder" button is pressed a dialog appear. + +![Creation Menu Action](docs/assets/document-list-creation-menu-actions-2.png) + + ### Custom columns It is possible to reorder, extend or completely redefine data columns displayed by the component. diff --git a/ng2-components/ng2-alfresco-documentlist/docs/assets/document-list-creation-menu-actions-1.png b/ng2-components/ng2-alfresco-documentlist/docs/assets/document-list-creation-menu-actions-1.png new file mode 100644 index 0000000000..abc0628c0a Binary files /dev/null and b/ng2-components/ng2-alfresco-documentlist/docs/assets/document-list-creation-menu-actions-1.png differ diff --git a/ng2-components/ng2-alfresco-documentlist/docs/assets/document-list-creation-menu-actions-2.png b/ng2-components/ng2-alfresco-documentlist/docs/assets/document-list-creation-menu-actions-2.png new file mode 100644 index 0000000000..27ec6d3e7e Binary files /dev/null and b/ng2-components/ng2-alfresco-documentlist/docs/assets/document-list-creation-menu-actions-2.png differ diff --git a/ng2-components/ng2-alfresco-documentlist/src/components/document-list.html b/ng2-components/ng2-alfresco-documentlist/src/components/document-list.html index 9da3bcbd8a..8a99ec2e56 100644 --- a/ng2-components/ng2-alfresco-documentlist/src/components/document-list.html +++ b/ng2-components/ng2-alfresco-documentlist/src/components/document-list.html @@ -1,7 +1,7 @@ + (success)="onActionMenuSuccess($event)" + (error)="onActionMenuError($event)"> { let relativeDir = this.currentFolderPath; console.log(relativeDir); - this.onSuccess.emit({value: relativeDir}); + this.success.emit({value: relativeDir}); }, error => { let errorMessagePlaceholder = this.getErrorMessage(error.response); if (errorMessagePlaceholder) { this.message = this.formatString(errorMessagePlaceholder, [name]); - this.onError.emit({message: this.message}); + this.error.emit({message: this.message}); console.log(this.message); } else { - this.onError.emit(error); + this.error.emit(error); console.log(error); } }