【问题标题】:DXHTML Sheduler: multiple timelines on same pageDHTMLX 调度程序:同一页面上的多个时间线
【发布时间】:2019-10-24 05:35:14
【问题描述】:

我需要显示一个按天、人员及其工作时间详细说明的每周计划时间表。例如,请参阅this screenshot

我已经尝试过的:

方法 1) 显示一天的时间线 (jsfiddle),但我无法复制几天。 Result screenshot

    scheduler.createTimelineView({
    name: "timeline",
    x_unit: "hour",
    x_date: "%H",
    days:7,
    x_step: 1,
    x_size: 12,
    x_start: 9,
    y_unit: scheduler.serverList("sections"),
    y_property: "section_id",
    render:"days", 
    });

方法 2) 显示多天、多小时和多人 (jsfiddle) 的时间线,但我无法交换行和列。 Result screenshot

    scheduler.createUnitsView({
        name:"week_unit",
        property:"section_id",
        list:sections,
        days:7
    });

如何显示多天(方法 1)或交换列/行(方法 2)?

【问题讨论】:

    标签: javascript timeline dhtmlx-scheduler


    【解决方案1】:

    请阅读article如何创建dhtmlxScheduler的多个实例,即同一页面上的多个时间线。

    关于秤的配置-您可以随时间添加第二个秤-example

    另外,我建议您使用 Timeline 视图检查 all samples 和描述视图可能性的 article,这在您使用 Timeline 时会有所帮助。

    【讨论】:

      猜你喜欢
      • 2020-03-29
      • 1970-01-01
      • 2020-03-27
      • 2020-03-23
      • 2020-03-26
      • 2015-02-20
      • 2017-01-07
      • 2015-03-30
      • 2017-03-21
      相关资源
      最近更新 更多