跳到主要内容

从右到左

Description

将甘特图切换为从右到左模式

rtl: boolean

Example

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

默认值: false

Details

将配置选项设为 true 将把时间线中的时间刻度方向以及网格中的行顺序改为从右到左。

它不会影响甘特图的 布局,因此你需要重新定义布局,以便交换网格和时间线的位置。

你也可能希望为甘特图中的标签文本设置方向:为甘特图中的标签文本设置方向

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.