updateMarker

刷新指定的 marker

void updateMarker(string | number markerId);
markerIdstring | numbermarker 的 ID

Example

var todayMarker = gantt.addMarker({
    start_date: new Date(),
    css: "today",
    title:date_to_str( new Date())
});
gantt.getMarker(todayMarker).css = "today_new";
gantt.updateMarker(todayMarker);

Related samples

Details

该方法属于 marker 扩展,因此请确保已启用 marker 插件。更多信息请参见 添加垂直标记 文章。

See also
Back to top