New to Kendo UI for jQueryStart a free 30-day trial

Tooltip

configuration

Defines the tooltip settings for the diagram.

tooltip

Boolean|Object
<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    tooltip: {
        delay: 500
    },
    shapes: [
        { id: "1", x: 100, y: 100, content: { text: "Hover over me" } }
    ]
});
</script>

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

<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>

The delay in milliseconds before the tooltipShow event is triggered after the user hovers over a diagram item.

Default: 200

<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    tooltip: {
        delay: 1000
    },
    shapes: [
        { id: "1", x: 100, y: 100, content: { text: "Tooltip appears after 1 second" } }
    ]
});
</script>

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

<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    tooltip: {
        shapeTemplate: (e)=> `T: ${e.content.text}`
    },
    shapes: [
        { id: "1", x: 100, y: 100, content: { text: "Tooltip appears" } }
    ]
});
</script>