• Material
  • Fabric
  • Bootstrap
  • High Contrast
Preferences
Theme Selection
Mode Selection
Touch
Mouse
Essential JS 2
HOME
All Controls

Button

This sample visualizes the data flow in a marketing process using predefined shapes and connectors. Different types of connectors and decorators are used to customize the appearance, path, and direction of the data flow.

DEMO
SOURCE
Properties
Appearance

In this example, you can see how to add connectors to connect the shapes and how to customize the appearance of the connectors. You can use the style property of the connector to customize its stroke style. You can use the cornerRadius property to add connectors with rounded corners.

Additionally, you can see how to lock the connectors to disable editing. The constraints property of connector enables/disables editing. In this example, the shapes are automatically arranged using hierarchical tree layout.

Injecting Module

Diagram component's features are segregated into individual feature-wise modules. To automatically arrange the shapes, we need to Inject HierarchicalTree module using Diagram.Inject(HierarchicalTree) method.