Skip to main content
Version: 1.0.4

IReorderEvent

@spartanfx/react v1.0.4


@spartanfx/react / IReorderEvent

Interface: IReorderEvent<T>

Event data emitted when a tree node is reordered via drag & drop.

Type Parameters

T

T = any

Properties

PropertyTypeDescription
itemsT[]Updated items array in the original format (flat or nested)
movedIdstringID of the node that was moved
newIndexnumberNew index position within the parent's children
newParentIdstringNew parent ID (null if moved to root)
previousIndexnumberPrevious index position
previousParentIdstringPrevious parent ID (null if was at root)