visible

Gets or sets the visibility of the element.

Parameters

visible Boolean

A flag indicating if the element should be visible.

Returns

Boolean true if the element is visible; false otherwise.

Example

<div id="surface"></div>
<script>
    var draw = kendo.drawing;
    var group = new draw.Group();

    var pathA = new draw.Path().moveTo(0, 0).lineTo(100, 100);
    var pathB = new draw.Path().moveTo(0, 100).lineTo(100, 0);
    group.append(pathA, pathB);

    console.log("Initial visibility:", group.visible());
    group.visible(false);
    console.log("After setting visible to false:", group.visible());

    var surface = draw.Surface.create($("#surface"));
    surface.draw(group);
</script>
In this article
visible
Not finding the help you need?
Contact Support