Phone API Reference - UI Classes (Widgets) - List - set
Phone API Reference - UI Classes (Widgets) - List - set
set
Description
Sets the contents of the given cell in the List.
Basic Example:Â
 listObj.set(row, column, content); |
Parameters
Name | Required | Type | Default | Description |
---|---|---|---|---|
row | No | integer | Â | Row number of the cell. |
column | No | integer | Â | Column number of the cell. |
content | No | varied | Â | The contents of the cell. Can be a string, or a widget. |
Examples
set the contents of a list widget
var list = new List(50, 50, 200, 200);
list.set(0, 0, 'Foo');
list.set(0, 1, 'Bar');
list.set(1, 0, 'Bar');
list.set(1, 1, 'Foo');Â |
Â