getMarker

gets the marker's object

object getMarker(string markerId);

Parameters

markerIdstringthe marker's id

Returns

objectthe marker's configuration object

Example

var todayMarker = gantt.addMarker({
    start_date: new Date(),
    css: "today",
    text:"Now"
    title:date_to_str( new Date())
});
gantt.getMarker(todayMarker); //->{css:"today", text:"Now", id:...}

Related samples

Details

This method is defined in the ext/dhtmlxgantt_marker.js extension, so you need to include it on the page. Read the details in the Adding Vertical Markers article.

See also
Back to top