Skip to content

@eightkk/vue-weave / core / TreeGridColumn

Interface: TreeGridColumn<R> ​

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

A TreeGrid column. R is the row type.

Type Parameters ​

R ​

R extends TreeGridRow = TreeGridRow

Properties ​

align? ​

optional align?: "start" | "end" | "center"

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

Text alignment of the cells. Default end for numbers in the default rendering, else start.


editable? ​

optional editable?: boolean | ((row) => boolean)

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

Whether cells of this column can be edited (with an editor and the grid's editable). Default true.


editor? ​

optional editor?: TreeGridEditor

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

The typed editor. A column without one cannot be edited.


id ​

id: string

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


label ​

label: string

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


missingCell? ​

optional missingCell?: TreeGridMissingCell

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

Overrides the grid's missingCell for this column.


update? ​

optional update?: (row, value) => R

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

Returns the row with a new value of this field column, for applyTreeGridEdits. null clears it. Sparse columns do not need it.

Parameters ​

row ​

R

value ​

FieldValue

Returns ​

R


value? ​

optional value?: (row) => TreeGridValue | TreeGridCellContent | null | undefined

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

Reads the cell of a field column from its row. Return a value, a TreeGridCellContent, null for none or undefined for a missing cell. Columns without it read the sparse cells.

Parameters ​

row ​

R

Returns ​

TreeGridValue | TreeGridCellContent | null | undefined


width ​

width: number

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

Width in CSS pixels; finite and positive.

Released under the MIT License.