mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
* [ADF-2152] Added See Also sections to docs * [ADF-2152] Added doc script to package.json
30 lines
858 B
Markdown
30 lines
858 B
Markdown
# Folder Create directive
|
|
|
|
Allows folders to be created.
|
|
|
|
## Basic Usage
|
|
|
|
```html
|
|
<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 | Description |
|
|
| ---- | ---- | ------- | ----------- |
|
|
| adf-create-folder | string | '-my-' | Parent folder where the new folder will be located after creation |
|
|
|
|
## 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.
|