Перейти к основному содержимому

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.