docs/Script API/interfaces/Frontend_Script_API._internal_.NodeData.html
Data object passed to FancytreeNode() constructor. Note: typically these attributes are accessed by meber methods, e.g. node.isExpanded() and node.setSelected(false).
interface NodeData {
active?: boolean;
children?: NodeData[];
data?: Object;
expanded?: boolean;
extraClasses?: string;
focus?: boolean;
folder?: boolean;
hideCheckbox?: boolean;
icon?: string | boolean;
iconTooltip?: string;
key?: string;
lazy?: boolean;
refKey?: string;
selected?: boolean;
statusNodeType?: string;
title: string;
tooltip?: string;
type?: string;
unselectable?: boolean;
unselectableIgnore?: boolean;
unselectableStatus?: boolean;
}
active?children?data?expanded?extraClasses?focus?folder?hideCheckbox?icon?iconTooltip?key?lazy?refKey?selected?statusNodeType?titletooltip?type?unselectable?unselectableIgnore?unselectableStatus?
Optionalactiveactive?: boolean
(initialization only, but will not be stored with the node).
Optionalchildrenchildren?: NodeData[]
optional array of child nodes
Optionaldatadata?: Object
all properties from will be copied to node.data
Optionalexpandedexpanded?: boolean
OptionalextraClassesextraClasses?: string
class names added to the node markup (separate with space)
Optionalfocusfocus?: boolean
(initialization only, but will not be stored with the node).
Optionalfolderfolder?: boolean
OptionalhideCheckboxhideCheckbox?: boolean
Optionaliconicon?: string | boolean
OptionaliconTooltipiconTooltip?: string
Will be added as title attribute of the node's icon span,thus enabling a tooltip.
Optionalkeykey?: string
unique key for this node (auto-generated if omitted)
Optionallazylazy?: boolean
OptionalrefKeyrefKey?: string
(reserved)
Optionalselectedselected?: boolean
OptionalstatusNodeTypestatusNodeType?: string
If set, make this node a status node. Values: 'error', 'loading', 'nodata', 'paging'.
title: string
node text (may contain HTML tags)
Optionaltooltiptooltip?: string
Optionaltypetype?: string
Made available as node.type.
Optionalunselectableunselectable?: boolean
OptionalunselectableIgnoreunselectableIgnore?: boolean
Ignore this node when calculating the partsel status of parent nodes in selectMode 3 propagation.
OptionalunselectableStatusunselectableStatus?: boolean
Use this as constant selected value(overriding selectMode 3 propagation).
Member Visibility
ThemeOSLightDark
Properties activechildrendataexpandedextraClassesfocusfolderhideCheckboxiconiconTooltipkeylazyrefKeyselectedstatusNodeTypetitletooltiptypeunselectableunselectableIgnoreunselectableStatus