日本語
@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?
optionalalign?:"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?
optionaleditable?: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?
optionaleditor?: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?
optionalmissingCell?:TreeGridMissingCell
Defined in: src/core/treeGrid.ts:88
Overrides the grid's missingCell for this column.
update?
optionalupdate?: (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
Returns
R
value?
optionalvalue?: (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.