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(2027,4,1),
end_date: new Date(2027,7,1),
css: "red_section",
type:"discount"
});
const eventId = scheduler.addEvent({
start_date: "16-05-2027 09:00",
end_date: "16-05-2027 12:00",
text: "Meeting",
holder: "John",
room: "5"
})
...
scheduler.checkInMarkedTimespan(scheduler.getEvent(eventId), "discount"); //->true
Доступные представления: 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.