How to add custom properties to the node using Angular Diagram?
This article explains how to add custom properties to the node using Angular Diagram. The addInfo property of the node allows you to store additional information for that particular node.
Refer to the following code example, demonstrating how to add a custom property to a node using Angular Diagram:
<e-nodes>
<e-node id="node1" [offsetx]="150" [offsety]="150" [addinfo]="addInfoOne">
</e-node>
<e-node id="node2" [offsetx]="350" [offsety]="150" [addinfo]="addInfoTwo">
</e-node>
</e-nodes>
public addInfoOne:any= [{
version: 'node1',
capacity: 'abcd'
}];
public addInfoTwo?:any=[{
version: 'node2',
capacity: 'xyz'
}];
Refer to the working sample for additional details and implementation: Sample
Conclusion:
We hope you enjoyed learning about how to add custom properties to the node using Angular Diagram.
You can refer to our Angular Diagram feature tour page to learn about its other groundbreaking feature representations. You can explore our Angular Diagram documentation to understand how to present and manipulate data.
For current customers, you can check out our Angular components from the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to check out our Angular Diagram and other Angular components. If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, BoldDesk Support, or feedback portal. We are always happy to assist you!