本文へ移動

@eightkk/vue-weave / core / TreeGridIndex

Interface: TreeGridIndex<R> ​

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

The validated input, built by createTreeGridIndex. Treat it as read-only.

Type Parameters ​

R ​

R extends TreeGridRow = TreeGridRow

Properties ​

cells ​

readonly cells: ReadonlyMap<string, ReadonlyMap<string, TreeGridCell>>

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

Sparse cells by row ID, then column ID.


childCounts ​

readonly childCounts: ReadonlyMap<string, number>

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

Number of child rows of each row that has any.


columnIndex ​

readonly columnIndex: ReadonlyMap<string, number>

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


columns ​

readonly columns: readonly TreeGridColumn<R>[]

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


missingCell ​

readonly missingCell: TreeGridMissingCell

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


rootCount ​

readonly rootCount: number

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


rowById ​

readonly rowById: ReadonlyMap<string, R>

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


rows ​

readonly rows: readonly R[]

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


tree ​

readonly tree: readonly object[]

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

The rows in tree preorder, with their zero-based depth and the preorder index after their subtree.

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