Documentation

adjustColumn

adjusts a column to the width of the content

void adjustColumn(string| number id, [string header] );

Parameters

idstring| numbercolumnID
headerstringadjustment mode ("header", "data", "all");

See also

Example

datatable.adjustColumn("title");
datatable.adjustColumn("title", "header");

Details

Adjustment modes:

  • 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.
Back to top