getMarker
Description
获取标记对象
getMarker: (markerId: string | number) => any
Parameters
markerId- (required) string | number - 标 记的ID
Returns
marker- (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:...}