getMarker
Description
Gets the marker's object
getMarker: (markerId: string | number) => any
Parameters
markerId- (required) string | number - the marker's id
Returns
marker- (object) - the marker's configuration object
Example
const 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
note
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.
Related API
Related Guides
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.