content

Gets or sets the text content.

Example - change content

<div id="surface"></div>
<script>
    var draw = kendo.drawing;
    var geom = kendo.geometry;

    var position = new geom.Point(10, 10);
    var text = new draw.Text("", position);

    var surface = draw.Surface.create($("#surface"));
    surface.draw(text);

    setInterval(function() {
        text.content(kendo.toString(new Date(), "T"));
    }, 1000);
</script>

Parameters

value StringThe new text content to set.

ReturnsString The current content of the text.

In this article
Not finding the help you need? Improve this article