tooltip.connectionTemplateFunction

Defines the tooltip that will be shown when hovering over a connection.

Example

<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    tooltip: {
        connectionTemplate: (e)=> `T: ${e.dataItem.label}`
    },
    shapes: [
        { id: "1", x: 100, y: 100, content: { text: "Shape 1" } },
        { id: "2", x: 300, y: 200, content: { text: "Shape 2" } }
    ],
    connections: [
        {
          from: "1",
          to: "2",
          dataItem: { label: "Connection from 1 to 2" }
        }
    ]
});
</script>
In this article
tooltip.connectionTemplate
Not finding the help you need?
Contact Support