Skip to main content

deleteMarker

Description

Deletes the specified marker

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

Parameters

  • markerId - (required) string | number - the marker's id

Example

const todayMarker = gantt.addMarker({
start_date: new Date(),
css: "today",
title:date_to_str( new Date())
});
gantt.deleteMarker(todayMarker);/*!*/

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.