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
Join Our Forum
We've retired comments here. Visit our forum for faster technical support,
connect with other developers, and share your feedback there.