visible

Gets or sets the visibility of the current element.

Parameters

visible Boolean

The new visibility state.

Returns

Boolean True if the element is visible, false otherwise.

Example

<div id="diagram"></div>
<script>
var shape1 = new kendo.dataviz.diagram.Rectangle({
    x: 50,
    y: 50,
    width: 100,
    height: 50,
    fill: {
        color: "#6EB5FF"
    }
});

var group = new kendo.dataviz.diagram.Group();
group.append(shape1);

var isVisible = group.visible();
console.log("Current visibility:", isVisible);

group.visible(false);
console.log("Group visible:", group.visible());

group.visible(true);
console.log("Group visible:", group.visible());
</script>
In this article
visible
Not finding the help you need?
Contact Support