UNPKG

@progress/kendo-angular-sortable

Version:

A Sortable Component for Angular

44 lines (43 loc) 1.97 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { OnDestroy, OnInit } from '@angular/core'; import { SortableComponent } from './sortable.component'; import { SortableService } from './sortable.service'; import * as i0 from "@angular/core"; /** * A Directive which handles the most common scenarios such reordering and moving items between Sortables, thus minimizng boilerplate code. * This is achieved by subscribing to the Sortable's events and handling them using the API methods it provides. */ export declare class SortableBindingDirective implements OnInit, OnDestroy { sortable: SortableComponent; private sortableService; private removeHiddenSubscription; private dragOverSubscription; private navigateSubscription; private lastTarget; /** * Sets a data-bound array that is used as a data source for the Sortable. * * <demo metaUrl="sortable/overview/" height="430"></demo> * */ set data(data: any[]); constructor(sortable: SortableComponent, sortableService: SortableService); private nextEnabledIndex; private addItem; private removeItem; private moveItem; /** * Removes the Draggable item from which the drag started. * @hidden */ private removeOriginDraggable; private onDragOver; private onNavigate; ngOnInit(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<SortableBindingDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<SortableBindingDirective, "[kendoSortableBinding]", never, { "data": { "alias": "kendoSortableBinding"; "required": false; }; }, {}, never, never, true, never>; }