visible
Gets or sets the visibility of the current element.
Parameters
visible Boolean
The new visibility state.
Returns
Example
<div id="diagram"></div>
<script>
var diagram = kendo.dataviz.diagram;
var rect = new diagram.Rect(0, 0, 300, 200);
var layout = new diagram.Layout(rect, {
orientation: "horizontal"
});
// Get current visibility
var isVisible = layout.visible();
console.log("Current visibility:", isVisible);
// Set visibility to false
layout.visible(false);
console.log("Layout hidden");
// Set visibility to true
layout.visible(true);
console.log("Layout visible");
</script>
Boolean
True if the element is visible, false otherwise.
In this article