adjustColumn
adjusts a column to the width of the content
void adjustColumn(string|number id, [string mode] );
id | string|number | column ID |
mode | string | optional, the adjustment mode ("header", "data", "all") |
Example
datatable.adjustColumn("title");
datatable.adjustColumn("title", "header");
Details
The adjustment modes are:
- header - adjusts the column to the width of its header;
- data (default) - adjusts the column to the width of its content;
- all - combines the above mentioned modes and adjusts the column to the bigger value.
See also
Back to top