RowReorderConfig
Configuration options for the RowReorderPlugin.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
enableKeyboard? | boolean | Enable keyboard shortcuts (Ctrl+Up/Down) for moving rows. |
showDragHandle? | boolean | Show a drag handle column for drag-and-drop reordering. |
dragHandlePosition? | left | right | Position of the drag handle column. |
dragHandleWidth? | number | Width of the drag handle column in pixels. |
canMove? | (row: T, fromIndex: number, toIndex: number, direction: up | down) => boolean | Validation callback to determine if a row can be moved. Return false to prevent the move. |
debounceMs? | number | Debounce time in milliseconds for rapid keyboard moves. Events are batched and emitted after this delay. |
animation? | false | flip | Animation type for row movement. - false: No animation, instant reorder - 'flip': FLIP animation (slides rows smoothly) |
Property Details
Section titled “Property Details”enableKeyboard
Section titled “enableKeyboard”Default: true
showDragHandle
Section titled “showDragHandle”Default: true
dragHandlePosition
Section titled “dragHandlePosition”Default: 'left'
dragHandleWidth
Section titled “dragHandleWidth”Default: 40
debounceMs
Section titled “debounceMs”Default: 150
animation
Section titled “animation”Default: 'flip'
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://raw.githubusercontent.com/OysteinAmundsen/toolbox/main/llms-full.txt