#101908
yavordashew
Member

Hi skriaa,
If you take a look at the typescript definition of the SchedulerViewType you will see that it accepts only string as a value, and if you want to define it as a object you will have to do it like this:

    views:(object | SchedulerViewType)[] = [{
            label: 'Work Week',
            value: 'workWeek',
            type: 'week',
            shortcutKey: 'W'
    }, 'month'];

Let me know if that works for you!
Please, do not hesitate to contact us if you have any additional questions.
Best regards,
Yavor Dashev
Smart UI Team
https://www.htmlelements.com/