Skip to content

@eightkk/vue-weave / core / TreeGridViewInput

Interface: TreeGridViewInput<R> ​

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

The input of projectTreeGridRows: a TreeGrid input with optional compare rules and the cell text options.

Extends ​

Type Parameters ​

R ​

R extends TreeGridRow = TreeGridRow

Properties ​

cells? ​

optional cells?: readonly TreeGridCell[]

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

Inherited from ​

TreeGridInput.cells


columns ​

columns: readonly TreeGridColumn<R>[]

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

Inherited from ​

TreeGridInput.columns


formatValue? ​

optional formatValue?: (value, context) => string

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

Parameters ​

value ​

TreeGridValue

context ​
column ​

TreeGridColumn<R>

row ​

R

Returns ​

string

Inherited from ​

TreeGridTextOptions.formatValue


labels? ​

optional labels?: Partial<Pick<TreeGridLabels, "yes" | "no">>

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

The words of booleans in columns without an editor format. Default treeGridDefaultLabels.yes and no.

Inherited from ​

TreeGridTextOptions.labels


missingCell? ​

optional missingCell?: TreeGridMissingCell

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

What a missing cell means. Default empty.

Inherited from ​

TreeGridInput.missingCell


rows ​

rows: readonly R[]

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

Inherited from ​

TreeGridInput.rows


sortRules? ​

optional sortRules?: Readonly<Record<string, TimelineRowCompare<R>>>

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

Registered compare rules by ID; a sort rule with such an ID uses it instead of a column.

Released under the MIT License.