Custom Node Expand Button Slot
This example shows how to replace relation-graph's default expand or collapse control with a custom slot-rendered badge attached to each node. It loads a local hierarchy, collapses one branch on startup, and uses the slot-provided toggle callback to support both click and touch interaction.
Custom Node Expand Controls With a Slot-Rendered Badge
What This Example Builds
This example builds a full-height hierarchy viewer whose main lesson is not the dataset itself, but the replacement of relation-graph’s default expand/collapse affordance. The graph opens as a centered rectangular tree of subsystem-like nodes, uses straight border-anchored links, and renders a pink pill-shaped control on the right side of each expandable node.
Users can inspect the hierarchy and toggle branch