UNPKG

ngx-explorer-dnd

Version:

## _Drag & Drop in Angular like in a desktop explorer!_

19 lines (18 loc) 988 B
import { ElementRef } from '@angular/core'; import { FileFolder } from '../core/file-folder'; import { NgxExplorerContainerDirective } from './ngx-explorer-container.directive'; import * as i0 from "@angular/core"; export declare class NgxExplorerItemDirective<T = any> { private elementRef; private _parentDrag?; private host?; /** The host HTMLElement */ htmlElement: HTMLElement; /** Optional drag data. */ data: any; constructor(elementRef: ElementRef, _parentDrag?: NgxExplorerContainerDirective<any> | undefined, host?: FileFolder | undefined); /** Return the host component. */ getHostComponent(): FileFolder | undefined; static ɵfac: i0.ɵɵFactoryDeclaration<NgxExplorerItemDirective<any>, [null, { optional: true; skipSelf: true; }, { optional: true; }]>; static ɵdir: i0.ɵɵDirectiveDeclaration<NgxExplorerItemDirective<any>, "[ngxExplorerDndElement]", never, { "data": "dndElementData"; }, {}, never, never, false, never>; }