Skip to content

NgDiagramNodeSelectedDirective

The NgDiagramNodeSelectedDirective conditionally applies a selected class to a node in the diagram when it is selected.

<div ngDiagramNodeSelected [node]="node()">
<!-- Node content here -->
</div>

When the node’s selected property is true, the ng-diagram-node-selected CSS class is applied.

node: InputSignal<Node>

The node instance to monitor for selection state.