Skip to content

GridHeaderContent

Since v1.8.0

Declarative wrapper around the grid’s imperative ShellPlugin.registerHeaderContent API.

Mounts its children into the slot the grid provides for header content while keeping them inside the React tree (so context, Suspense, error boundaries, portals, etc. all work). Must be a descendant of <DataGrid>.

GridHeaderContent(__namedParameters: GridHeaderContentProps): null
NameTypeDescription
__namedParametersGridHeaderContentProps
<DataGrid gridConfig={config}>
<GridHeaderContent id="calendar-nav" order={0}>
<HeaderNav year={year} onYearChange={setYear} />
</GridHeaderContent>
</DataGrid>
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://toolboxjs.com/llms-full.txt