tooltipClose

Triggered when closing the surface tooltip.

Example - subscribe to the "tooltipClose" event

<div id="container"></div>
<script>
  var draw = kendo.drawing;
  var surface = draw.Surface.create($("#container"), {
    tooltipClose: function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
      console.log("tooltip close");
    }
  });

  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.ElementThe element with set tooltip options. Can differ from the target element for groups.
e.preventDefault Function

If invoked, prevents the close action.

e.target kendo.drawing.ElementThe target element.
In this article