setColumnWidth(col, width)
| Create a Freehand Table for more information about Freehand Tables. |
Sets the width of the specified Table column in pixels. For an expanding table column in a Freehand Table, this affects only the first instance of the specified expanding column. To address all instances of an expanding column, use setColumnWidthAll(col, width).
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:
TableView1.setColumnWidth(2,100);
// Hide fourth column
TableView1.setColumnWidth(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. |