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

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.