Phone API Reference - UI Classes (Widgets) - List - setColumnWidths
Phone API Reference - UI Classes (Widgets) - List - setColumnWidths
setColumnWidths
Â
Description
Sets the widths of each column in pixels. If the last value is set to 0, it will use all remaining space to fill the list's width. Â
Basic Example:Â
listObj.setColumnWidths(width[, width...]); |
A List object will not be visible until you perform this method and set the column widths. If not set, column widths default to zero.
Parameters
Name | Required | Type | Default | Description |
---|---|---|---|---|
width | Yes | integer | Â | Width in pixels. |
Â
Examples
setColumnWidth with different column widths, and the last column fits in the remaining space
list.setColumnWidths(35, 100, 0); |
Â
Â