visibleBoolean
A flag, indicating if the element is visible. Inherited from Element.visible
Example
<div id="surface" style="width: 250px; height: 250px;"></div>
<script>
var draw = kendo.drawing;
var visiblePath = new draw.Path({
visible: true,
stroke: {
color: "#27ae60",
width: 3
}
})
.moveTo(50, 50)
.lineTo(200, 50);
var hiddenPath = new draw.Path({
visible: false,
stroke: {
color: "#e74c3c",
width: 3
}
})
.moveTo(50, 100)
.lineTo(200, 100);
var surface = draw.Surface.create($("#surface"));
surface.draw(visiblePath);
surface.draw(hiddenPath); // This won't be visible
</script>
In this article