Angular Common Types - grids - DragStartEventInfo

Describes a row at the start of a drag gesture.

import { DragStartEventInfo } from "devextreme/common/grids"

This type supplies row data, the row element, the source index, and custom source data for DataGrid and TreeList RowDraggingStartEvent arguments. The TRowData type parameter specifies the type of itemData.

fromData

Custom data associated with the source UI component.

Type: any

Set the source component's data property to pass application-specific information to row-dragging handlers. Use fromData to identify or access this information during a transfer between components.

fromIndex

The row's original position.

Type:

Number

Use this field to locate the dragged row in the source component. The value is -1 if the row comes from another UI component. When paging is enabled, the index is relative to the active page.

itemData

The data object of the row being dragged.

Type: any

Use this field to identify the row in your data source. Access a key field in the data object instead of treating a visible row index as an index in the underlying data source.

itemElement

The container of the item being dragged. It is an HTML Element or a jQuery Element when you use jQuery.

Use this field to access the dragged row's element in an event handler. To access the corresponding data object, use itemData.