본문으로 건너뛰기

onClick

Description

사용자가 이벤트에서 마우스 왼쪽 버튼을 클릭할 때 발생합니다.

onClick: (id: string, e: Event) => boolean;

Parameters

  • id - (required) string - 이벤트의 id
  • e - (required) Event - 네이티브 이벤트 객체

Returns

  • result - (boolean) - 기본 이벤트 동작이 진행될지(true) 차단될지(false) 결정합니다.

Example

scheduler.attachEvent("onClick", function (id, e){
//여기에 사용자 정의 로직 작성
return true;
});

Details

이 이벤트는 차단할 수 있습니다. 핸들러에서 true 이외의 값을 반환하면 기본 동작(보통 선택 바 표시)이 중단됩니다.

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.