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

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);

 

 

Return to Documentation Home I Return to Sangoma Support