[ADF-2463] Moved doc files into subfolders (#3080)

This commit is contained in:
Andy Stark
2018-03-14 15:38:55 +00:00
committed by Eugenio Romano
parent 2889f6dcac
commit 86cc219bc4
48 changed files with 206 additions and 208 deletions
@@ -0,0 +1,33 @@
---
Added: v2.0.0
Status: Active
---
# 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 value | Description |
| ---- | ---- | ------------- | ----------- |
| parentNodeId | `string` | `DEFAULT_FOLDER_PARENT_ID` | 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.