JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › General Discussions › errors while installation › Reply To: errors while installation
June 18, 2021 at 11:36 am
#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/