Phone API Reference - UI Classes (Widgets) - List - select
Phone API Reference - UI Classes (Widgets) - List - select
select
Description
Selects the specified row.
Basic Example:
listObj.select(row);
the first row is row zero.
Parameters
Name | Required | Type | Default | Description |
---|---|---|---|---|
row | Yes | integer |
| Row number of the cell. |
Examples
select row 14 of a list widget
var list = new List(50, 50, 200, 200);
list.setProp('rows', 30)
.setProp('cellFunc', function () { return 'This is a row!'; });
list.select(14); |