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