ListBox.removeItem

Syntax

removeItem(value, isDispose);

Parameters

value. Index of removed item.

isDispose. Determines whether the item should be deleted (True), or removed from the list (False).

Description

The removeItem method deletes the element of the list by the specified index.

Example

To execute the example create the ListBox component named LB as shown in description of the ListBox.filterByText method. Create the button on pressing which the element of the list is deleted:

<button onclick = LB.removeItem(0);>Delete</button>

 

After executing the example on pressing the Delete button the first element of list is deleted.

See also:

ListBox