GridToolPanel
Directive that captures an <ng-template> for use as a custom tool panel.
This enables declarative Angular component usage for tool panels that appear in the grid’s side panel.
<tbw-grid [rows]="rows" [gridConfig]="config"> <tbw-grid-tool-panel id="quick-filters" title="Quick Filters" icon="🔍" tooltip="Apply quick filters" [order]="10" > <ng-template let-grid> <app-quick-filters [grid]="grid" /> </ng-template> </tbw-grid-tool-panel></tbw-grid>The template context provides:
$implicit/grid: The grid element reference
Attributes
Section titled “Attributes”id(required): Unique identifier for the paneltitle(required): Panel title shown in accordion headericon: Icon for accordion section header (emoji or text)tooltip: Tooltip for accordion section headerorder: Panel order priority (lower = first, default: 100)
Import the directive in your component:
import { GridToolPanel } from '@toolbox-web/grid-angular';
@Component({ imports: [GridToolPanel], // ...})Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
id | InputSignal<string> | Unique panel identifier (required) |
title | InputSignal<string> | Panel title shown in accordion header (required) |
icon | InputSignal<string | undefined> | Icon for accordion section header (emoji or text) |
tooltip | InputSignal<string | undefined> | Tooltip for accordion section header |
order | InputSignal<number> | Panel order priority (lower = first, default: 100) |
template | Signal<TemplateRef<any> | undefined> | Query for the ng-template content child. |
Methods
Section titled “Methods”ngTemplateContextGuard()
Section titled “ngTemplateContextGuard()”Static type guard for template context. Enables type inference in templates.
ngTemplateContextGuard(dir: GridToolPanel, ctx: unknown): ctxParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
dir | GridToolPanel | |
ctx | unknown |
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