0
我使用TimeGlider进行一些时间事件显示..很棒,很有趣,但我的问题是,我必须动态地添加所有事件,而不是通过JSON文件..喜欢所有示例显示..问题是addEvent方法时添加一个事件与“enddate”不显示它应该显示的背景跨度..但是,如果你把相同的事件内部的JSON文件..跨度是可见的..更多的事件添加通过addEvent不会显示鼠标上的enddate,它表明它没有考虑“enddate”。TimeGlider addEvent not reading enddate
{
"id":"_now1",
"title": "nowEventere",
"date_display":"ho",
"description": "prttt",
"startdate": "2012-01-01 08:00:00",
"enddate": "2012-04-01 08:00:00",
"high_threshold":60,
"importance":"40",
"icon":"triangle_red.png",
"span_color":"#FF0000"
}
因此上述事件如果JSON文件将显示的时间跨度,但
var event={
"id":"_now1",
"title": "nowEventere",
"date_display":"ho",
"description": "prttt",
"startdate": "2012-01-01 08:00:00",
"enddate": "2012-04-01 08:00:00",
"high_threshold":60,
"importance":"40",
"icon":"triangle_red.png",
"span_color":"#FF0000",
"timelines":["js_history"]
};
tg_actor.addEvent(event);
将只使用“开始日期” ...这会是一个bug,或有东西在事件失踪?