tooltipOpen
Triggered when opening the surface tooltip.
Example - subscribe to the "tooltipOpen" event
<div id="container"></div>
<script>
var draw = kendo.drawing;
var surface = draw.Surface.create($("#container"), {
tooltipOpen: function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log("tooltip open");
}
});
var path = new draw.Path({
tooltip: {
content: "Path"
}
}).fill("red")
.moveTo(50, 0).lineTo(100, 50).lineTo(0, 50).close();
surface.draw(path);
</script>
Event Data
e.element kendo.drawing.Element
The element with set tooltip options. Can differ from the target element for groups.
e.preventDefault Function
If invoked, prevents the open action.
e.target kendo.drawing.Element
The target element.
In this article