Skip to main content
cngx-src documentation

createTreeController

Functioncommon/interactive/treev0.1.0

projects/common/interactive/tree-controller/tree-controller.ts

Description#

Plain factory for a signal-native tree controller. Reads opts.nodes reactively, derives flat / visible projections via computed, and tracks expanded-id state internally. Must be called in an injection context (reads CNGX_TREE_CONFIG for defaults).

See CngxTreeController for the returned surface and CngxTreeControllerOptions for the configuration cascade.

Signature#

createTreeController(opts: CngxTreeControllerOptions)

Parameters#

Returns#

CngxTreeController