documentationfor yFiles for HTML 3.0.0.3

FolderNodeState

A data container representing the collapsed state of a node.

Inheritance Hierarchy
FoldingLabelOwnerState
FolderNodeState

Remarks

When the properties of the state are changed, these changes are reflected immediately in the views.

This class cannot be instantiated

Examples

const state = manager.getFolderNodeState(masterNode)
state.style = new GroupNodeStyle()
const state = manager.getFolderNodeState(masterNode)
const labelState = state.labels.get(0)
labelState.text = 'New Label Text'
const state = manager.getFolderNodeState(masterNode)
const style = new LabelStyle()
state.addLabel(
  'Folder Label',
  InteriorNodeLabelModel.TOP_RIGHT,
  style,
  new Size(20, 10),
)

Type Details

yFiles module
view

See Also

Properties

Methods