setColumnWidthAll(col, width)
| Create a Freehand Table for more information about Freehand Tables. |
Sets the width of the specified expanding column in a Freehand Table. This setting applies to all instances of the expanding column. (Set width to 0 to hide all instances of the expanding column.) To hide only the first instance of an expanding column, use setColumnWidth(col, width) instead.
Parameters
- col
-
column index (first column is index 0)
- width
-
Positive integer: column width in pixels
-1sets automatic width calculation (default)
0sets zero width (column hidden)
Example
// Set third column width to 100 pixels,
// and all instances of this expanding column
TableView1.setColumnWidthAll(2,100);
// Hide the fourth column and all instances
// of this expanding column
TableView1.setColumnWidthAll(3,0);
|
Either syntax below can be used in component script:
For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required. |