visibleBoolean

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

Example - setting visibility in configuration

<div id="surface" style="width: 250px; height: 250px;"></div>
<script>
    var draw = kendo.drawing;

    var multiPath1 = new draw.MultiPath({
        visible: true,
        fill: { color: "red" }
    });
    multiPath1.moveTo(50, 50).lineTo(150, 50).lineTo(100, 100).close();

    var multiPath2 = new draw.MultiPath({
        visible: false,
        fill: { color: "blue" }
    });
    multiPath2.moveTo(150, 150).lineTo(200, 150).lineTo(175, 200).close();

    var surface = draw.Surface.create($("#surface"));
    surface.draw(multiPath1);
    surface.draw(multiPath2); // This won't be visible
</script>
In this article
visible
Not finding the help you need?
Contact Support