GridToolbarContent
Since v1.8.0
Declarative wrapper around the grid’s imperative ShellPlugin.registerToolbarContent API.
Mounts its children into the slot the grid provides for toolbar content while
keeping them inside the React tree. Must be a descendant of <DataGrid>.
Prefer this over <tbw-grid-tool-buttons> (light DOM) when you need
reactive props or callbacks bound to React state. Use the light-DOM form
for static markup that should be moved verbatim into the toolbar.
GridToolbarContent(__namedParameters: GridToolbarContentProps): nullParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
__namedParameters | GridToolbarContentProps |
Example
Section titled “Example”<DataGrid gridConfig={config}> <GridToolbarContent id="calendar-nav" order={0}> <ToolbarNav onPrev={prev} onToday={today} onNext={next} /> </GridToolbarContent></DataGrid>
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://toolboxjs.com/llms-full.txt