DataGridElement (Framework Adapters)
API for framework adapter developers (React, Angular, Vue, etc.). These methods are used by framework integration libraries to register adapters and manage column/renderer lifecycles.
See the public API documentation for consumer-facing members.
Methods
Section titled “Methods”registerAdapter()
Section titled “registerAdapter()”Register a framework adapter for handling framework-specific components. Adapters are checked in registration order when processing light DOM templates.
static registerAdapter(adapter: FrameworkAdapter): voidParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
adapter | FrameworkAdapter |
Example
Section titled “Example”// In @toolbox-web/grid-angularimport { AngularGridAdapter } from '@toolbox-web/grid-angular';
// One-time setup in appGridElement.registerAdapter(new AngularGridAdapter(injector, appRef));getAdapters()
Section titled “getAdapters()”Get all registered framework adapters. Used internally by light DOM parsing to find adapters that can handle templates.
static getAdapters(): unknownclearAdapters()
Section titled “clearAdapters()”Clear all registered adapters (primarily for testing).
static clearAdapters(): voidrefreshColumns()
Section titled “refreshColumns()”Re-parse light DOM column elements and refresh the grid. Call this after framework adapters have registered their templates. Uses the render scheduler to batch with other pending updates.
refreshColumns(): void