mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-1769] Added JSDocs for directives (#2964)
This commit is contained in:
committed by
Eugenio Romano
parent
d731cc651c
commit
b45048b5ed
@@ -27,6 +27,7 @@ import { DownloadZipDialogComponent } from '../dialogs/download-zip.dialog';
|
||||
})
|
||||
export class NodeDownloadDirective {
|
||||
|
||||
/** Nodes to download. */
|
||||
// tslint:disable-next-line:no-input-rename
|
||||
@Input('adfNodeDownload')
|
||||
nodes: MinimalNodeEntity[];
|
||||
|
@@ -31,6 +31,7 @@ const DEFAULT_FOLDER_PARENT_ID = '-my-';
|
||||
export class FolderCreateDirective {
|
||||
static DIALOG_WIDTH: number = 400;
|
||||
|
||||
/** Parent folder where the new folder will be located after creation. */
|
||||
@Input('adf-create-folder')
|
||||
parentNodeId: string = DEFAULT_FOLDER_PARENT_ID;
|
||||
|
||||
|
@@ -31,6 +31,7 @@ import { ContentService } from '@alfresco/adf-core';
|
||||
export class FolderEditDirective {
|
||||
static DIALOG_WIDTH: number = 400;
|
||||
|
||||
/** Folder node to edit. */
|
||||
@Input('adf-edit-folder')
|
||||
folder: MinimalNodeEntryEntity;
|
||||
|
||||
|
@@ -27,15 +27,19 @@ export class FileDraggableDirective implements OnInit, OnDestroy {
|
||||
|
||||
files: File [];
|
||||
|
||||
/** Enables/disables drag-and-drop functionality. */
|
||||
@Input('file-draggable')
|
||||
enabled: boolean = true;
|
||||
|
||||
/** Emitted when one or more files are dragged and dropped onto the draggable element. */
|
||||
@Output()
|
||||
filesDropped: EventEmitter<File[]> = new EventEmitter<File[]>();
|
||||
|
||||
/** Emitted when one or more files are dragged and dropped onto the draggable element. */
|
||||
@Output()
|
||||
filesEntityDropped: EventEmitter<any> = new EventEmitter();
|
||||
|
||||
/** Emitted when a directory is dragged and dropped onto the draggable element. */
|
||||
@Output()
|
||||
folderEntityDropped: EventEmitter<any> = new EventEmitter();
|
||||
|
||||
|
Reference in New Issue
Block a user