DevExtreme v24.2 is now available.

Explore our newest features/capabilities and share your thoughts with us.

Your search did not match any results.

React Diagram - Templates

The Diagram component provides the following properties to create custom shape templates.

  • The customShapeTemplate property defines a common template for all shapes in the component.
  • The template property defines a template for an individual shape.

Template content must be presented as SVG elements.

In this demo, the customShapeTemplate property adds the 'Show Details' link to a shape. When clicked, it displays a popup window that contains additional information about an employee.

To give you the ability to edit code on the fly, the demo uses SystemJS. For this reason, launching the demo takes some time. We strongly recommend that you do not use this approach in real projects.
Backend API