removeAt (index, notDispose);
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.
The removeAt method removes the child item of the container by its index.
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: