Skip to content

GridToolbarContent

Since v1.7.0

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

Captures an <ng-template> and mounts it as an Angular embedded view into the slot the grid provides for toolbar content. Must be a child of <tbw-grid>.

Prefer this over <tbw-grid-tool-buttons> (light DOM) when you need Angular template bindings to component state. Use the light-DOM form for static markup that should be moved verbatim into the toolbar.

<tbw-grid [rows]="rows" [gridConfig]="config">
<tbw-grid-toolbar-content id="calendar-nav" [order]="0">
<ng-template let-grid>
<app-toolbar-nav (prev)="prev()" (today)="today()" (next)="next()" />
</ng-template>
</tbw-grid-toolbar-content>
</tbw-grid>
PropertyTypeDescription
idInputSignal<string | undefined>
orderInputSignal<number>
templateSignal<TemplateRef<any> | undefined>
ngTemplateContextGuard(_dir: GridToolbarContent, ctx: unknown): ctx
NameTypeDescription
_dirGridToolbarContent
ctxunknown

AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://toolboxjs.com/llms-full.txt