Method to get the current calendar view


Is there a method or parameter to get the current view of the calendar (day/week/month) ?

my default view is “month”, and I have logic to prevent creating appointments in the past, but in Month view when you double click it will return a error because it sets the date/time to the start time of 7:00 am.

I want to bypass my logic on month view and let the new record prompt appear… the logic check will get fired when they attempt to save the record anyways.

.attachEvent(“onEventChanged”, …) {

if isMonthView return;

… validate date code…


try this method … state.html