alfresco-ng2-components/docs/content-services/folder-create.directive.md
Eugenio Romano 2951374cc0
[ASD-2483] Validate folder name on change (#3088)
* notify service refactoring
get translate eliminitation in favor of instant
add error event where necessary
fix config problem during test

* fix delete notify test

* remove fdescribe

* fix core test

* errors

* fix types
2018-03-21 16:55:52 +00:00

1.0 KiB

Added, Status
Added Status
v2.0.0 Active

Folder Create directive

Allows folders to be created.

Basic Usage

<adf-toolbar>
    <button mat-icon-button
            [adf-create-folder]="documentList.currentFolderId">
            <mat-icon>create_new_folder</mat-icon>
    </button>
</adf-toolbar>

<adf-document-list #documentList ...>
 ...
</adf-document-list>

Properties

Name Type Default value Description
parentNodeId string DEFAULT_FOLDER_PARENT_ID Parent folder where the new folder will be located after creation.

Events

Name Type Description
error EventEmitter<any> Emitted when an error occurs.

Details

'FolderCreateDirective' directive needs the id of the parent folder where we want the new folder node to be created. If no value is provided, the '-my-' alias is used. It opens the FolderDialogComponent to receive data for the new folder. If data is valid, on dialog close, it emits folderCreate event.