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

onViewChange

Description

Срабатывает после того, как текущий вид изменится на другой

onViewChange: (new_mode: string, new_date: Date) => void

Parameters

  • new_mode - (required) string - новый вид
  • new_date - (required) Date - новая дата

Example

scheduler.attachEvent("onViewChange", (new_mode, new_date) => {
// любая пользовательская логика здесь
});

Details

Событие вызывается каждый раз, когда текущий вид изменяется.

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.