본문으로 건너뛰기

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:...}

Details

노트

note 이 메서드는 marker 확장 기능의 일부이므로, marker 플러그인이 활성화되어 있는지 확인하세요. 자세한 내용은 수직 마커 추가하기 문서를 참고하시기 바랍니다.