Skip to content

@eightkk/vue-weave / core / treeGridDropAt

Function: treeGridDropAt() ​

treeGridDropAt(index, flat, id, line, fraction): TreeGridDrop | undefined

Defined in: src/core/treeGrid.ts:1111

The drop place for dragging row id over displayed line line, at fraction (0 to 1) of its height: the upper quarter puts the row before the line's row, the lower quarter after it (as the first child when its children are shown), and the middle inside it as its last child. Status lines take the row as the parent's last child. Places in the dragged row's own subtree, and a drop on the row itself, give undefined.

Parameters ​

index ​

TreeGridIndex<any>

flat ​

TreeGridLines<any>

id ​

string

line ​

number

fraction ​

number

Returns ​

TreeGridDrop | undefined

Released under the MIT License.