본문으로 건너뛰기

getActionData

Description

현재 커서 아래에 있는 날짜와 섹션을 반환합니다. 해당 항목이 없을 경우에는 반환하지 않습니다.

getActionData: (e: Event) => any

Parameters

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

Returns

  • point - (object) - 두 가지 속성을 포함하는 객체:
    • date - (Date) 커서 위치의 날짜
    • section - (string, number) 커서 아래 섹션의 식별자 (Timeline 및 Units 뷰에 적용 가능)

Example

scheduler.attachEvent("onMouseMove", function(id, e){
var action_data = scheduler.getActionData(e);
// -> {date:Tue Jun 30 2009 09:10:00, section:2}
...
})

Details

노트

버전 3.5부터 사용 가능합니다.

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.