Skip to main content
cngx-src documentation

withCapitaliseHeaders

Functiondata-display/treetable

projects/data-display/treetable/treetable.token.ts

Description#

Feature: auto-capitalisation of column header labels.

The library default for capitaliseHeader is true, so headers already capitalise without this helper. Use withCapitaliseHeaders(false) to opt out and render the raw column-key strings (useful for snake_case domain keys you want to keep verbatim, or for fully custom *cngxHeader slot rendering).

Signature#

withCapitaliseHeaders(enabled: unknown)

Parameters#

@paramenabledunknown= true
  • Capitalise on/off. Default true.

Returns#

TreetableFeature