adjustColumn

adjusts a column to the width of the content

void adjustColumn(string|number id, [string mode] );
idstring|numbercolumn ID
modestringoptional, 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
If you have not checked yet, be sure to visit site of our main product Webix web development library and page of tree table product.