DefaultColumnWidth: Number
The DefaultColumnWidth property sets default width for table columns.
Use JSON or the setDefaultColumnWidth method to set the property value and the getDefaultColumnWidth method to get the property value.
Default width of table columns is 70 pixels.
To execute the example, the HTML page must contain the TabSheet component named tabSheet (see Example of Creating the TabSheet Component). Set new default values for column width and row height in the table:
// Get table dimensions var measures = tabSheet.getMeasures(); // Change default column width value measures.setDefaultColumnWidth(50); // Change default row height value measures.setDefaultRowHeight(30); // Rerender table tabSheet.rerender();
After executing the example width of table columns and height of table rows is changed:
See also: