本文へ移動

@eightkk/vue-weave / core / treeGridRowMoveForKey

Function: treeGridRowMoveForKey() ​

treeGridRowMoveForKey(input, rows, id, rtl?): TimelineRowPosition | "ignore" | undefined

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

Where a key on a row header moves the row, as GanttChart's row move keys: Alt+ArrowUp and Alt+ArrowDown one place among its siblings, Alt+Shift with the arrow towards the cells (right, or left with rtl) indents it under its previous sibling (as the last child) and the other arrow outdents it after its parent. 'ignore' for other keys, undefined when the row cannot move that way. Apply the proposal with moveTimelineRow.

Parameters ​

input ​

TreeGridKeyInput

rows ​

readonly TreeGridRow<unknown>[]

id ​

string

rtl? ​

boolean = false

Returns ​

TimelineRowPosition | "ignore" | undefined

MIT ライセンスで公開しています。