alfresco-ng2-components/docs/content-services/folder-edit.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

956 B

Added, Status
Added Status
v2.0.0 Active

Folder Edit directive

Allows folders to be edited.

Basic Usage

<adf-toolbar title="toolbar example">
    <button mat-icon-button
            [adf-edit-folder]="documentList.selection[0]?.entry">
        <mat-icon>create</mat-icon>
    </button>
</adf-toolbar>

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

Properties

Name Type Default value Description
folder MinimalNodeEntryEntity Folder node to edit.

Events

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

Details

'FolderEditDirective' directive needs a selection folder entry of #documentList to open the folder dialog component to edit the name and description properties of that selected folder. If data is valid, on dialog close, it emits folderEdit event.