Custom Node
Learn how to create a custom node with your own template and form controls.
Explore these examples to learn how to implement various features in ngDiagram. Each example includes a live demo and full source code to help you get started quickly.
Learn how to create a custom node with your own template and form controls.
Create custom edges with unique visual styles and interactive elements, including labeled edges and wave-shaped connections.
Implement a custom model that persists data directly to localStorage with automatic synchronization.
Customize port appearance and behavior with styling, positioning, and connection type configuration.
Implement a context menu that adapts its options based on whether a node or the diagram background is clicked.
Build an interactive properties panel that updates when nodes are selected and allows real-time editing of attributes.
Export the current flow as a PNG image using the html-to-image library with proper bounding box calculation.
Implement save and restore functionality to persist diagram state to local storage.
Integrate external layout libraries like ELK.js for advanced automatic diagram layouts with edge routing.
Create a custom middleware that implements read-only functionality by intercepting state changes.
Learn how to integrate Angular Material components within your custom nodes.
Explore the performance capabilities with 500 nodes arranged in a grid with almost 500 connections.
Demonstrates the library's capabilities and integration with external libraries like charts in real-case scenario.