Skip to content

Interaction And Labels

Selection, hover, and labels are default behaviors. Application code can call the behavior namespace after await helios.ready, whether the user action came from the canvas, a side panel, a search result, a keyboard shortcut, or a custom behavior.

The example below writes a label attribute and configures labels to show only for selected nodes. This keeps the visual output readable while demonstrating how behavior options tune default behavior instead of enabling it from scratch.

Select Nodes And Show Labels

      

The important pattern is that selection state lives in the behavior layer. That state can be serialized, restored, used by labels, reflected in UI controls, or modified by custom application code without bypassing the visual system.