contentString|Function
The text or a function which result will be shown within the tooltip.
If the content is not set or is an empty string then the tooltip will not be shown.
Example
<div id="surface"></div>
<script>
var draw = kendo.drawing;
var geom = kendo.geometry;
var surface = draw.Surface.create($("#surface"));
var circle = new draw.Circle(new geom.Circle([50, 50], 30), {
fill: { color: "red" },
tooltip: {
content: function(e) {
return "Circle at position: " + e.shape.geometry().center.toString();
}
}
});
surface.draw(circle);
</script>
In this article