Container.removeAt

Syntax

removeAt (index, notDispose);

Parameters

index. Item index that must be removed.

notDispose. Whether to remove items completely. If the parameter is set to False, the item is fully deleted.

Description

The removeAt method removes the child item of the container by its index.

Example

To execute the example, the HTML page must contain the GridPanel component named container (seep; Example of Creating the GridPanel Component). Add an HTML button clicking which deletes the child item of the GridPanel component with the index 0:

<button onclick= "removeFirst()">Remove first</button>

Javascropt code must contain the following information:

    function removeLast() {

        container.removeAt(0);

        };

After executing the example the HTML page contains the Remove First button clicking which removes the first item in the array of children of the GridPanel component.

See also:

Container