getMarker
Description
Gibt das Marker-Objekt zurück
getMarker: (markerId: string | number) => any
Parameters
markerId- (erforderlich) string | number - die Marker-ID
Returns
marker- (object) - das Marker-Konfigurationsobjekt
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
Hinweis
Diese Methode ist in der Marker-Erweiterung definiert, daher müssen Sie das marker Plugin aktivieren. Lesen Sie die Details im Artikel Adding Vertical Markers.
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.