The Diagram widget provides the following options to create custom shape templates.
Template content must be presented as SVG elements.
In this demo, the customShapeTemplate option adds the 'Show Details' link to a shape. When clicked, it displays a popup window that contains additional information about an employee.