visible
Gets or sets the visibility of the element. Inherited from Element.visible
Example - setting and getting visibility
<div id="surface" style="width: 250px; height: 250px;"></div>
<script>
    var draw = kendo.drawing;
    var multiPath = new draw.MultiPath()
        .moveTo(50, 50).lineTo(150, 50).lineTo(100, 100).close()
        .moveTo(100, 150).lineTo(200, 150).lineTo(150, 200).close();
    multiPath.fill("teal");
    var surface = draw.Surface.create($("#surface"));
    surface.draw(multiPath);
    // Make it invisible after 2 seconds
    setTimeout(function() {
        multiPath.visible(false);
        console.log("Visibility: " + multiPath.visible());
    }, 2000);
    // Make it visible again after 4 seconds
    setTimeout(function() {
        multiPath.visible(true);
        console.log("Visibility: " + multiPath.visible());
    }, 4000);
</script>Parameters
visible Boolean
A flag indicating if the element should be visible.
Returns
Boolean true if the element is visible; false otherwise.
In this article