A data container representing the state of a label at a FolderNodeState or FoldingEdgeState.
Inheritance Hierarchy
FoldingLabelState
Remarks
When the properties of the state are changed, these changes are reflected immediately in the views.
Examples
const state = manager.getFolderNodeState(masterNode)
const labelState = state.labels.get(0)
labelState.text = 'New Label Text'
const state = manager.getFolderNodeState(masterNode)
const style = new DefaultLabelStyle()
state.addLabel(
'Folder Label',
InteriorLabelModel.NORTH_EAST,
style,
new Size(20, 10),
null
)
Type Details
- yfiles module
- view-folding
- yfiles-umd modules
- view-folding, view-graphml, view
- Legacy UMD name
- yfiles.graph.FoldingLabelState
See Also
FoldingLabelOwnerState.labels,
FoldingLabelOwnerState.addLabel,
FoldingEdgeState.remove(FoldingLabelState),
FolderNodeState.remove,
The State of Folded Elements
Properties
Gets or sets the ILabelModelParameter used to describe the label's layout.
Gets or sets the preferred size of the label.
Gets or sets the style of this label.
Methods
Returns an ILabel instance which represents this label state.
Remarks
The returned label is not present in any graph but may be passed to getViewItem to get the label state's view label in the folding view graph.