UNPKG

ng-reorder

Version:

Sort elements within a list by using drag-n-drop interface without any restrictions by direction

24 lines (23 loc) 943 B
import { QueryList, AfterViewInit, NgZone } from '@angular/core'; import { DragUnitDirective as DragUnit } from './drag-unit.directive'; import { SortService } from './sort.service'; import { Point } from './interfaces'; /** Exported an empty interface of DragCollectionDirective to prevent circular dependency */ export interface DragCollectionInterface extends DragCollectionDirective { } export declare class DragCollectionDirective implements AfterViewInit { private _zone; private sortService; private _disabled?; private dropCompleted; units: QueryList<DragUnit>; private _activeItem; get inAction(): boolean; get disabled(): boolean; constructor(_zone: NgZone, sortService: SortService); ngAfterViewInit(): void; private clearChildren; moveUnitTo(unit: DragUnit, point: Point): void; start(unit: DragUnit, point: Point): void; stop(unit: DragUnit): void; }