DataGridRef
Ref handle for the DataGrid component.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
element | DataGridElement<TRow> | unknown | The underlying grid DOM element with proper typing |
getConfig | () => Promise<Readonly<GridConfig<TRow>>> | Get the effective configuration |
ready | () => Promise<void> | Wait for the grid to be ready |
forceLayout | () => Promise<void> | Force a layout recalculation |
toggleGroup | (key: string) => Promise<void> | Toggle a group row |
registerStyles | (id: string, css: string) => void | Register custom styles |
unregisterStyles | (id: string) => void | Unregister custom styles |
setRowLoading | (rowId: string, loading: boolean) => void | Set loading state for a specific row |
setCellLoading | (rowId: string, field: string, loading: boolean) => void | Set loading state for a specific cell |
isRowLoading | (rowId: string) => boolean | Check if a row is in loading state |
isCellLoading | (rowId: string, field: string) => boolean | Check if a cell is in loading state |
clearAllLoading | () => void | Clear all loading states (grid, rows, and cells) |
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://toolboxjs.com/llms-full.txt