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

checkLimitViolation

Description

Определяет, пересекается ли заданное событие с заблокированным периодом времени

checkLimitViolation: (event: any) => boolean

Parameters

  • event - (required) object - объект события

Returns

  • isBlocked - (boolean) - возвращает true, если событие попадает в заблокированное время, иначе false.

Example

var event = {
text : "New Event",
start_date : new Date(2013, 02, 20, 10, 00),
end_date : new Date(2013, 02, 20, 14, 00)
};

var isBlocked = scheduler.checkLimitViolation(event); //возвращает 'true' или 'false'

Details

примечание

Метод требует активации плагина limit.

Учтите, что этот метод вызывает событие onLimitViolation.

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.