remove

Removes the given element from the group

Parameters

element Object

The element to remove.

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",
    spacing: 10
});

// Create and add elements
var circle = new diagram.Circle({ radius: 25 });
var rectangle = new diagram.Rectangle({ width: 50, height: 30 });
layout.append(circle);
layout.append(rectangle);

// Remove the circle element
layout.remove(circle);
console.log("Circle element removed from layout");
</script>
In this article
remove
Not finding the help you need?
Contact Support