visibleBoolean

A flag, indicating if the element is visible. Inherited from Element.visible

Example

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

    var rectGeometry = new geom.Rect([0, 0], [100, 100]);
    var rect = new draw.Rect(rectGeometry, {
        fill: { color: "red" },
        visible: false
    });

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

    // Make it visible after 2 seconds
    setTimeout(function() {
        rect.visible(true);
    }, 2000);
</script>
In this article
visible
Not finding the help you need?
Contact Support