UNPKG

@progress/kendo-angular-utils

Version:

Kendo UI Angular utils component

53 lines (52 loc) 1.67 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { PreventableEvent } from '@progress/kendo-angular-common'; /** * Arguments for the drag event of the `DragTarget` and `DragTargetContainer`. */ export class DragTargetDragEvent extends PreventableEvent { /** * The information related to the current drag event. * This is the normalized drag event that contains details about the drag operation. */ dragEvent; /** * The DOM element being dragged. */ dragTarget; /** * The hint element of the `DragTarget`. */ hintElement; /** * The identifier passed to the `dragTargetId` input property of the `DragTarget` or `DragTargetContainer` directive. */ dragTargetId; /** * The index of the current drag target in the collection of drag targets. Applies to `DragTargetContainer` directive. */ dragTargetIndex; /** * Left for backward compatibility for the DragTarget deprecated events. * @hidden */ get normalizedEvent() { return this.dragEvent; } /** * Left for backward compatibility for the DragTarget deprecated events. * @hidden */ get hostElement() { return this.dragTarget; } /** * @hidden */ constructor(args) { super(); Object.assign(this, args); } }