jquery dhtmlxScheduler禁用带有seprate标题的标记时间跨度



我已经成功地禁用了代码下面区域中提到的时间。我的问题是所有的时间跨度标题都显示Appointment Fixed,但是,我想在htmljson中显示哪个患者预订了这个时段。

scheduler.addMarkedTimespan({ html: "Appointment Fixed", days: 1, zones: [180, 240,720,840,900,960,1020], css: "red_section", type: "dhx_time_block" });

如果我给出以下代码,我会在浏览器控制台中显示参数约束错误。

scheduler.addMarkedTimespan({ html: ["Patient1","Patient2","Patient3"], days: 1, zones: [180, 240,720,840,900,960], css: "red_section", type: "dhx_time_block" });

提前感谢

'html'属性采用html字符串,而不是数组。在将时隙描述传递给方法之前,您需要格式化它,例如

scheduler.addMarkedTimespan({ html: "<ul><li>Patient1<li>Patient2<li>Patient3</ul>", days: 1, zones: [180, 240,720,840,900,960], css: "red_section", type: "dhx_time_block" });

您可能还需要更改时间跨度的行高设置,以便允许使用多行内容。

.red_section {
 line-height: 150% !important;
}

最新更新