Zum Hauptinhalt springen

updateMarker

Description

Aktualisiert den angegebenen Marker

updateMarker: (markerId: string | number) => void

Parameters

  • markerId - (erforderlich) string | number - die ID des Markers

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); /*!*/

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.

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.