Jquery 将Dhtmlx计划程序时间线视图小时标题设置为12小时格式
在Dhtmlx调度程序时间轴视图中,如何将小时标题从军事时间(24小时)设置为12小时格式 我在他们的论坛上找到了一些回应,但这似乎不起作用Jquery 将Dhtmlx计划程序时间线视图小时标题设置为12小时格式,jquery,dhtmlx-scheduler,Jquery,Dhtmlx Scheduler,在Dhtmlx调度程序时间轴视图中,如何将小时标题从军事时间(24小时)设置为12小时格式 我在他们的论坛上找到了一些回应,但这似乎不起作用 scheduler.config.hour_date = "%h:%i %A"; 任何帮助都将不胜感激。谢谢 必须在具有x_date属性的时间线配置对象中指定小时格式。 以下是一个例子: scheduler.createTimelineView({ name: "timeline", x_unit: "hour", x_da
scheduler.config.hour_date = "%h:%i %A";
任何帮助都将不胜感激。谢谢 必须在具有x_date属性的时间线配置对象中指定小时格式。 以下是一个例子:
scheduler.createTimelineView({
name: "timeline",
x_unit: "hour",
x_date: "%h:%i %A",
x_step: 1,
x_size: 24,
y_unit: [
{key:1, label:"James Smith"},
{key:2, label:"John Williams"},
{key:3, label:"David Miller"},
{key:4, label:"Linda Brown"}
],
y_property: "section_id",
render:"bar"
});
必须在具有x\u date属性的时间线配置对象中指定小时格式。 以下是一个例子:
scheduler.createTimelineView({
name: "timeline",
x_unit: "hour",
x_date: "%h:%i %A",
x_step: 1,
x_size: 24,
y_unit: [
{key:1, label:"James Smith"},
{key:2, label:"John Williams"},
{key:3, label:"David Miller"},
{key:4, label:"Linda Brown"}
],
y_property: "section_id",
render:"bar"
});
下面是我使用的MVC的完整解决方案
var timeline = new TimelineView("timeline", "EmployeeId");
timeline.X_Date = "%h:%i %A";
下面是我使用的MVC的完整解决方案
var timeline = new TimelineView("timeline", "EmployeeId");
timeline.X_Date = "%h:%i %A";
我使用timeline.X_日期代替sched.Config.hour_日期。谢谢你,保罗!:)我使用timeline.X_日期代替sched.Config.hour_日期。谢谢你,保罗!:)