UNPKG

fundamental-ngx

Version:

SAP Fiori Fundamentals, implemented in Angular

32 lines (31 loc) 1.2 kB
import { EventEmitter } from '@angular/core'; /** * Directive that handles the drag and drop feature of the file input. */ export declare class FileDragndropDirective { /** @Input Whether multiple files can be dropped at once. */ multiple: boolean; /** @Input Accepted file extensions. Format: `'.png,.jpg'`. */ accept: string; /** @Input Whether selecting of new files is disabled. */ disabled: boolean; /** @hidden */ dragndrop: boolean; /** @Output Event emitted when files are selected. Passes back an array of files. */ onFileChange: EventEmitter<File[]>; /** @Output Event emitted when invalid files are selected. Passes back an array of files. */ onInvalidFiles: EventEmitter<File[]>; /** @Output Event emitted when the dragged file enters the dropzone. */ onDragEnter: EventEmitter<null>; /** @Output Event emitted when the dragged file exits the dropzone. */ onDragLeave: EventEmitter<null>; private elementStateCounter; /** @hidden */ onDragover(event: any): void; /** @hidden */ onDragenter(): void; /** @hidden */ onDragleave(event: any): void; /** @hidden */ onDrop(event: any): void; }