Reorder beta
Interface of @v12-engine/client/kit
ts
export interface ReorderWhat createReorder gives a list: the props of a row it may be dragged by (row(index)), where the line it would go is shown (lineAt(index): 'before', 'after'), and the row being dragged
Members
dragging
ts
dragging(): number | undefined;The index of the row being dragged, while one is
handle
ts
handle(index: number): ReorderHandle;Of a row dragged by a handle (a row of sliders, of fields): the handle's props…
lineAt
ts
lineAt(index: number): 'before' | 'after' | undefined;Where the row at an index shows the line of where the dragged one would go: before it, after it, or nowhere
row
ts
row(index: number): ReorderHandle & ReorderTarget;The drag's props of the row at an index, spread on it: dragged by all of it, and dropped on
target
ts
target(index: number): ReorderTarget;…and the row's, where it is dropped