TabSheet.autoColumnWidth

Syntax

autoColumnWidth(colIndex: Number, fully: Boolean);

Parameters

colIndex. Index of the column, for which you want to adjust width.

fully. Determines whether to account for invisible cells when adjusting column width. By default this parameter is set to True, and cells are accounted for. If the parameter is False, invisible cells are ignored.

Description

The autoColumnWidth method autofits width of table columns.

Example

To execute the example, the HTML page must contain the TabSheet component named tabSheet (see Example of Creating the TabSheet Component). Automatically set width for the column and height for the row with the index 1:

// Determine index
var index = 1;
// Set automatic width of the second column and height of the first row
tabSheet.autoColumnWidth(index);
tabSheet.autoRowHeight(index);

After executing the example width of the second column and height of the second row are set automatically:

See also:

TabSheet