Skip to main content
cngx-src documentation

withDefaultNodeIdFn

Functioncommon/interactive/treev0.1.0

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

Description#

App-wide default nodeIdFn. Per-controller options still override. Use this to enforce a domain id convention across the whole app (e.g. (v) => (v as { uuid: string }).uuid) without repeating it at every call site.

Signature#

withDefaultNodeIdFn(fn)

Parameters#

@paramfn

Returns#

CngxTreeConfigFeature