updates the specified marker
markerId | string | number | the marker's id |
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);
This method is defined in the marker extension, so you need to enable the marker plugin. Read the details in the Adding Vertical Markers article.