@progress/kendo-angular-utils
Version:
Kendo UI Angular utils component
54 lines (53 loc) • 1.53 kB
JavaScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
/**
* Arguments for the drag events of the DropTarget and DropTargetContainer directives.
*/
export class DropTargetEvent {
/**
* The current drag target element.
*/
dragTarget;
/**
* The current drop target element.
*/
dropTarget;
/**
* The information related to the current drag event.
*/
dragEvent;
/**
* The data passed to the `dragData` input property of the `DragTarget` or `DragTargetContainer` directive.
*/
dragData;
/**
* The index of the current drop target in the collection of drop targets (applicable for the `DropTargetContainer` directive).
*/
dropTargetIndex;
/**
* The hint of the DragTarget.
*/
hintElement;
/**
* Left for backward compatibility for the DropTarget deprecated events.
* @hidden
*/
get normalizedEvent() {
return this.dragEvent;
}
/**
* Left for backward compatibility for the DropTarget deprecated events.
* @hidden
*/
get hostElement() {
return this.dropTarget;
}
/**
* @hidden
*/
constructor(args) {
Object.assign(this, args);
}
}