跳到主要内容

updateMarker

Description

更新指定的标记

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

Parameters

  • markerId - (required) string | number - 该标记的 ID

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

注释

此方法在 marker 扩展中定义,因此您需要启用 marker 插件。请参阅 添加垂直标记 文章中的详细信息。

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.