remove

Removes the specified element from the group.

Parameters

element kendo.drawing.Element

The element to remove.

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("Children before remove:", group.children.length);
    group.remove(pathA);
    console.log("Children after remove:", group.children.length);

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