HeaderContentDefinition
Header content definition for plugins contributing to shell header center section.
Register via grid.registerHeaderContent() to add content between
the title and toolbar buttons.
Example
Section titled “Example”grid.registerHeaderContent({ id: 'row-count', order: 10, render: (container) => { const span = document.createElement('span'); span.className = 'row-count'; span.textContent = `${grid.rows.length} rows`; container.appendChild(span);
// Update on data changes const unsub = grid.on('data-change', () => { span.textContent = `${grid.rows.length} rows`; });
return () => { unsub(); }; },});Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
id | string | Unique content ID |
render | (container: HTMLElement) => void | () => void | Content factory - called once when shell header renders |
onDestroy? | () => void | Called when content is removed (for cleanup) |
order? | number | Order priority (lower = first, default: 100) |
See Also
Section titled “See Also”ShellConfigfor shell configuration
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