EditorSlotProps
Slot context for #editor slot in TbwGridColumn.
Example
Section titled “Example”<TbwGridColumn field="name" editable> <template #editor="{ value, commit, cancel }"> <input :value="value" @blur="commit($event.target.value)" @keydown.escape="cancel()" /> </template></TbwGridColumn>Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
value | TValue | The current cell value |
row | TRow | The entire row data |
column | ColumnConfig<TRow> | The column configuration |
field | string | Field name being edited |
rowId | string | Stable row identifier (from getRowId). Empty string if no getRowId is configured. |
commit | (newValue: TValue) => void | Commit the edit with new value |
cancel | () => void | Cancel the edit |
updateRow | (changes: Partial<TRow>) => void | Update other fields in this row while the editor is open. Changes trigger cell-change events with source 'cascade'. |
onValueChange? | (callback: (newValue: TValue) => void) => void | Register a callback to receive value updates when the cell is modified externally (e.g., via updateRow() from another cell’s commit). |
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://raw.githubusercontent.com/OysteinAmundsen/toolbox/main/llms-full.txt