adjustColumn
adjusts a column to the width of the content
function adjustColumn( // column ID id: string|number, // optional, the adjustment mode ("header", "data", "all") mode?: string): void
Example
Section titled “Example”datagrid.adjustColumn("title");datagrid.adjustColumn("title", "header");
Details
Section titled “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
Section titled “See also”Articles
API