grid_width
Description
Sets the width of the grid
grid_width: number
Example
gantt.config.grid_width = 400;
gantt.init("gantt_here");
Default value: 360
Details
The width of Grid columns depends on two attributes: the width of the column and the width of the grid. If the sum of the width of columns is not equal to the width of the grid, Gantt changes one of the parameters.
- When initializing the gantt via gantt.init(), the width of the column is a priority.
- When rendering the gantt via gantt.render(), the grid_width is a priority.
note
sample: Adjustment of column width
- When initializing the gantt via gantt.init() and either the width of the column is not specified or is set to '*', the grid_width is a priority.
note
sample: Adjusting column width