documentationfor yFiles for HTML 2.6

FoldingLabelState

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

Properties

Methods