Skip to main content
cngx-src documentation

CngxTreeSelectNodeContext

Interface

projects/forms/select/tree-select/tree-select.model.ts

Import#

import { CngxTreeSelectNodeContext } from '@cngx/forms/select'

Description#

Context for *cngxTreeSelectNode. Carries the flat-projected node plus the reactive derivations the panel uses (selected, indeterminate, expanded), so custom markup mirrors the built-in row without re-querying.

toggleExpand / handleSelect are closed callbacks bound to the surrounding component - wire into (click) on a custom twisty button or row body.

Index#

Instance Properties#

$implicit#FlatTreeNode
Readonly
depth#number
Readonly
disabled#boolean
Readonly
expanded#boolean
Readonly
handleSelect#function
Readonly

Run the select-path for this node (respects cascade / commit).

hasChildren#boolean
Readonly
indeterminate#boolean
Readonly
node#FlatTreeNode
Readonly
selected#boolean
Readonly
toggleExpand#function
Readonly

Flip the expansion state of this node. No-op on leaves.