getMarker

获取标记对象

object getMarker(string | number markerId);
markerIdstring | number标记的ID
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

该方法属于 marker 扩展的一部分,因此请确保已启用 marker 插件。更多详情请参阅 添加垂直标记 文章。

See also
Back to top