fitColumn()
Description
adjusts the width of the column to match the longest value in the column
Usage
fitColumn(cell: string): void;
Parameters
cell
- (required) the id of a cell that contains the name of the necessary column
Example
const spreadsheet = new dhx.Spreadsheet("spreadsheet", {});
spreadsheet.parse(data);
// adjusts the width of the "G" column
spreadsheet.fitColumn("G2");
Change log: Added in v5.0
Related articles: Work with Spreadsheet