TreetableConfig
projects/data-display/treetable/treetable.token.ts
Import#
import { TreetableConfig } from '@cngx/data-display/treetable'
Description#
Application-wide default configuration for every CngxTreetable
instance in the injection scope.
Precedence cascade. Each treetable instance reads its effective
options through CngxTreetable.resolvedOptions which overlays
the per-instance [options] input on top of this app-wide config.
Per-instance wins for the keys it sets; app-wide fills the rest;
library defaults fill anything still unset. Same shape as Material's
MAT_* defaults pattern.
Register an instance of this via provideTreetable; reach it
by injecting CNGX_TREETABLE_CONFIG in custom code (rare -
CngxTreetable already does that internally).
Index#
Instance Properties#
When true, column header labels have their first letter
uppercased before display. Set per-instance via
options.capitaliseHeader to override.
When true, rows are visually highlighted on mouse-hover across
all instances. Set per-instance via options.highlightRowOnHover
to override.
App-wide copy overrides for every built-in string the treetable renders or announces. Unset keys fall back to the English library defaults. Register via withTreetableLabels.
TreetableTemplatesApp-wide default templates for the async-state surfaces. Middle
tier of the slot cascade: a projected ng-template slot on the
instance wins, this config tier fills in next, the built-in
markup is the fallback. Register via withTreetableTemplates.