UNPKG

ngx-explorer-dnd

Version:

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

25 lines (24 loc) 1.27 kB
import { ElementRef, OnDestroy, OnInit, Renderer2 } from '@angular/core'; import { FileFolder } from '../core/file-folder'; import { DndService } from '../services/dnd.service'; import { NgxExplorerContainerDirective } from './ngx-explorer-container.directive'; import * as i0 from "@angular/core"; export declare class NgxExplorerTargetDirective implements OnInit, OnDestroy { private element; private renderer; private dndService; private _parentDrag?; private host?; private dragElementSubscription; private currentDragElement; data: any; constructor(element: ElementRef, renderer: Renderer2, dndService: DndService, _parentDrag?: NgxExplorerContainerDirective<any> | undefined, host?: FileFolder | undefined); ngOnInit(): void; ngOnDestroy(): void; onMouseEnter(ev: any): void; onMouseLeave(ev: any): void; /** Return the host component. */ getHostComponent(): FileFolder | undefined; static ɵfac: i0.ɵɵFactoryDeclaration<NgxExplorerTargetDirective, [null, null, null, { optional: true; skipSelf: true; }, { optional: true; }]>; static ɵdir: i0.ɵɵDirectiveDeclaration<NgxExplorerTargetDirective, "[ngxExplorerDndTarget]", never, { "data": "dndTargetData"; }, {}, never, never, false, never>; }