mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-1344] New Custom Loading Content Directive for Datatable Component (#4156)
* [ADF-1344] New Custom Loading Content Directive for Datatable Component * [ADF-1344] Add unit tests for directives on Document List * [ADF-1344] Add directive prefix to context-menu directive * [ADF-1344] Old directive selectors have been put back * [ADF-1344] Add old selector for empty-content directive
This commit is contained in:
committed by
Eugenio Romano
parent
5887fa1052
commit
1c25b50b1a
@@ -20,15 +20,18 @@
|
||||
import { FileUtils } from '@alfresco/adf-core';
|
||||
import { Directive, ElementRef, EventEmitter, Input, NgZone, OnDestroy, OnInit, Output } from '@angular/core';
|
||||
|
||||
/**
|
||||
* Directive selectors without adf- prefix will be deprecated on 3.0.0
|
||||
*/
|
||||
@Directive({
|
||||
selector: '[file-draggable]'
|
||||
selector: '[adf-file-draggable], [file-draggable]'
|
||||
})
|
||||
export class FileDraggableDirective implements OnInit, OnDestroy {
|
||||
|
||||
files: File [];
|
||||
|
||||
/** Enables/disables drag-and-drop functionality. */
|
||||
@Input('file-draggable')
|
||||
@Input('adf-file-draggable')
|
||||
enabled: boolean = true;
|
||||
|
||||
/** Emitted when one or more files are dragged and dropped onto the draggable element. */
|
||||
@@ -39,7 +42,7 @@ export class FileDraggableDirective implements OnInit, OnDestroy {
|
||||
@Output()
|
||||
folderEntityDropped: EventEmitter<any> = new EventEmitter();
|
||||
|
||||
private cssClassName: string = 'file-draggable__input-focus';
|
||||
private cssClassName: string = 'adf-file-draggable__input-focus';
|
||||
private element: HTMLElement;
|
||||
|
||||
constructor(el: ElementRef, private ngZone: NgZone) {
|
||||
|
Reference in New Issue
Block a user