본문으로 건너뛰기

checkInMarkedTimespan

Description

특정 타입의 타임스팬 내에 이벤트가 포함되는지 여부를 결정합니다

checkInMarkedTimespan: (event: any, timespan: string) => boolean

Parameters

  • event - (required) object - 이벤트 객체
  • timespan - (required) string - 타임스팬의 타입

Returns

  • isIn - (boolean) - true 이벤트가 지정된 타임스팬 타입 내에 발생하는 경우

Example

scheduler.addMarkedTimespan({
start_date: new Date(2013,4,1),
end_date: new Date(2013,7,1),
css: "red_section",
type:"discount"
});

var eventId = scheduler.addEvent({
start_date: "16-05-2013 09:00",
end_date: "16-05-2013 12:00",
text: "Meeting",
holder: "John",
room: "5"
})
...
scheduler.checkInMarkedTimespan(scheduler.getEvent(eventId), "discount"); //->true

Applicable views: Timeline view

Details

노트

이 메서드는 limit 플러그인이 활성화되어 있어야 합니다.

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.