Quartz Headless docs/TreeNodeContext

Search documentation

Type to search the documentation.

API: Primitives

TreeNodeContext

Interface reference for TreeNodeContext.

Overview

Declaration

interface TreeNodeContext

Properties

Name Type Description
$implicit TreeNode
node TreeNode
level number
expanded boolean
selected boolean
hasChildren boolean
toggle () => void
select () => void
loadState Signal<TreeNodeLoadState> Lazy-load state of this node's children. Reports loaded for nodes whose children were provided statically, so a template can treat both kinds of node alike.
loading Signal<boolean> Shorthand for loadState() === 'loading'.
error Signal<unknown> Rejection value of the last failed load, or undefined.
retry () => void Clear the error and request the children again.