UNPKG

@ng-dnd/sortable

Version:
27 lines (26 loc) 1.15 kB
import { ElementRef, OnChanges, OnDestroy } from '@angular/core'; import { DndService, DragSource } from '@ng-dnd/core'; import { DraggedItem, SortableSpec } from '../types'; import * as i0 from "@angular/core"; export declare const EXTERNAL_LIST_ID: symbol; export declare class DndSortableExternal<Data> implements OnChanges, OnDestroy { private dnd; private el; spec: SortableSpec<Data>; /** * This source has beginDrag and endDrag implemented in line with what dndSortableRender does. * * You must, like dndSortableRender, attach it with [dragSource] somewhere. */ source: DragSource<DraggedItem<Data>>; /** @ignore */ constructor(dnd: DndService, el: ElementRef<Element>); /** @ignore */ private size; /** @ignore */ ngOnChanges(): void; /** @ignore */ ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<DndSortableExternal<any>, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<DndSortableExternal<any>, "[dndSortableExternal]", ["dndSortableExternal"], { "spec": { "alias": "dndSortableExternal"; "required": false; }; }, {}, never, never, true, never>; }