English
@eightkk/vue-weave / core / createTreeGridIndex
Function: createTreeGridIndex()
createTreeGridIndex<
R>(input):TreeGridIndex<R>
Defined in: src/core/treeGrid.ts:411
Validate and index a TreeGrid input. Throws, like createTimelineRowTree (with (tree grid rows) appended), for invalid or duplicate row IDs, unknown parents and cycles; Invalid column ID and Duplicate column ID, a RangeError for a column width that is not finite and positive, an unknown missingCell or childStatus, and a TypeError for a value, update or editable of the wrong type; for sparse cells Unknown row in tree grid cell: <id>, Unknown column in tree grid cell: <id>, Duplicate tree grid cell: <row> / <column>, an Error for a cell in a field column or a cell with neither value nor status, a RangeError for a non-finite number or an unknown status and a TypeError for a value of another type. Entities need non-empty string kinds and IDs.
Type Parameters
R
R extends TreeGridRow<unknown>