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

layout

Description

Указывает объект layout

layout: any

Example

gantt.config.layout = {
css: "gantt_container",
rows: [
{
cols: [
{ view: "grid", id: "grid", scrollX: "scrollHor", scrollY: "scrollVer" },
{ resizer: true, width: 1 },
{ view: "timeline", id: "timeline", scrollX: "scrollHor", scrollY: "scrollVer" },
{ view: "scrollbar", scroll: "y", id: "scrollVer" }
]
},
{ view: "scrollbar", scroll: "x", id: "scrollHor", height: 20 }
]
};

gantt.init("gantt_here");

Details

заметка

Учтите, что конфигурацию layout следует задавать до инициализации Gantt. Если вы внесете изменения в layout, нужно обновить его с помощью resetLayout().

  • Gantt Layout
  • How-tos (прочитайте, как переключать grid/chart)
  • How-tos (прочитайте, как переключать представление ресурсов)
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.