TabSheetMeasures.setColumnsWidth

Syntax

setColumnsWidth(value: Array);

Parameters

value. Array of table column width values.

Description

The setColumnsWidth method sets new width values for table columns.

Example

To execute the example, the HTML page must contain the TabSheet component named tabSheet (see Example of Creating the TabSheet Component). Set new width and height values for the first two columns and rows in the table:

// Get table dimensions
var measures = tabSheet.getMeasures();
// Set new width values for columns with indexes 0 and 1 
measures.setColumnsWidth([45, 40]);
// Set new height values for rows with indexes 0 and 1
measures.setRowsHeight([25, 20]);
//Rerender table
tabSheet.rerender();

After executing the example width and height of two first columns and rows in the table is decreased:

See also:

TabSheetMeasures