Перейти к основному содержимому

grid_width

Description

Устанавливает ширину Grid

grid_width: number

Example

gantt.config.grid_width = 400;

gantt.init("gantt_here");

Значение по умолчанию: 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.

  • При инициализации gantt через gantt.init(), приоритет имеет ширина столбца width.

  • При отрисовке gantt через gantt.render(), приоритет имеет grid_width.

  • При инициализации gantt через gantt.init() и если ширина столбца не указана или установлена как '*', приоритет имеет grid_width.
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.