property

DragData

Contains data associated with a drag operation, including transferable and site-local information.

dataTransfer

property

String-based key-value pairs to be transferred with the drag event.

TypeRecord

siteLocalData

property

Data that remains local to the site and is not transferred via the drag event's DataTransfer object.

TypeRecord

property

DragEventFn

Callback function executed during a drag event.

Parameters

paramsDragEventParams (docs)

Returns

void

property

DragEventParams

Arguments passed during a drag event lifecycle.

dragElement

property

The HTML element currently being dragged.

TypeHTMLElement

position

property

Current cursor position during the drag.

state

property

Current drag state data.

property

DragMoveState

Describes the final state of a drag-and-drop move operation.

dragElement

property

Element that was being dragged.

TypeHTMLElement

dropElement

property

Element into which the drag was dropped.

TypeHTMLElement

isKeyboard

property

Indicates if the drag was initiated via keyboard.

Type

boolean

leftHalf

property

True if the drop occurred in the left half of the element.

Type

boolean

rect

property

Bounding rectangle of the drop target.

TypeDOMRect

topHalf

property

True if the drop occurred in the top half of the element.

Type

boolean

x

property

X coordinate of the drop.

Type

number

y

property

Y coordinate of the drop.

Type

number

property

DragPlaceholderFn

Function to render the drag placeholder UI. This UI is rendered in isolation and does not respond to app state changes.

Parameters

paramsDragPlaceholderParams (docs)

Returns

ReactNode

property

DragPlaceholderParams

Parameters passed when rendering the drag placeholder content.

dragData

property

The data associated with the current drag session.

grid

property

A reference to the LyteNyte Grid instance.

TypeGrid

property

DragPosition

Represents the current pointer position during a drag operation.

x

property

Client X coordinate.

Type

number

y

property

Client Y coordinate.

Type

number

property

DropEventFn

Fired when a drop action is finalized and the dragged element is released over a drop zone.

Parameters

paramsDropEventParams (docs)

Returns

void

property

DropEventParams

Represents the full context passed to the drop event handler.

dragElement

property

The HTML element that was dragged.

TypeHTMLElement

dropElement

property

The HTML element onto which the drop occurred.

TypeHTMLElement

moveState

property

Details the last-known drag position and target info before drop.

state

property

The drag data at the time of drop.

property

GetDragDataFn

Function used to provide the data that will be associated with a drag operation.

Parameters

paramsGetDragDataParams (docs)

Returns

DragData (docs)

property

GetDragDataParams

Defines the input parameters for the function that provides data during a drag operation.

grid

property

A reference to the LyteNyte Grid instance.

TypeGrid

row

property

The row node instance in LyteNyte Grid.

property

UseRowDragParams

Parameters for configuring drag behavior using a React hook.

announceDragEnd

property

Screen reader message to announce drag end.

Type

string

announceDragStart

property

Screen reader message to announce drag start.

Type

string

dragInstructions

property

Accessible label describing how to perform the drag operation.

Type

string

getDragData

property

Function to compute the drag payload when dragging begins.

keyActivate

property

Keyboard key used to initiate drag mode.

Type

string

keyDrop

property

Keyboard key used to execute the drop.

Type

string

keyNext

property

Keyboard key used to move to the next drop zone.

Type

string

keyPrev

property

Keyboard key used to move to the previous drop zone.

Type

string

onDragEnd

property

Called at the end of a drag operation, regardless of drop.

onDragMove

property

Invoked frequently as the drag position updates.

onDragStart

property

Called at the beginning of a drag operation.

onDrop

property

Triggered when the drag results in a drop.

placeholder

property

Function to generate placeholder content for the drag preview.

placeholderOffset

property

Offset [x, y] in pixels from the cursor position for rendering the drag placeholder.

No properties