Я разрабатываю webapp и использую плагин jQuery fullcalendar.
Мне нужно как-то отключить определенные временные интервалы.
Текущий метод, который я использую, - это добавить события для временных интервалов, которые я хочу отключить, и запретить перекрытие событий.
Есть ли лучший способ сделать это? Я не исключаю перекрытие событий.
Я могу жить с решением для вышеупомянутой проблемы: добавить черные временные интервалы и запретить добавление временных интервалов в этих областях.
Тем не менее у меня есть более насущная проблема. Мне нужно изменить цвет фона слотов для определенных временных диапазонов. В идеале я бы использовал это так же, как eventSources; просто укажите URL-адрес и отправьте цветные диапазоны обратно с помощью ajax/json.
Щедрость, которую я собираюсь добавить, для этой последней проблемы (цветные интервалы слотов, а также в дневном и недельном просмотре). Если кто-то может предложить мне другое решение, а затем полный календарь, который может это сделать, это также прекрасно.