react-big-scheduler
react-big-scheduler copied to clipboard
React Big Scheduler - Antd date picker changes
Hi,
Is there any possible way to change antd date picker week day starts from "Monday" in react big scheduler????
Hi,
I needed the same thing a while ago, I did it in the following way: in the configuration of "moment" I call the property of the week and define the day on which the calendar begins, in your case the day number 1 which is Monday, already that the array starts on Sunday with 0. For example:
moment.locale('en', { week: { dow: 1, doy: 1, }, });
After set objet calendar:
let schedulerData = new SchedulerData(date, ViewTypes.Week, false, false, { resourceName: "Name", schedulerWidth : dimensions, views: [], },{ isNonWorkingTimeFunc: this.isNonWorkingTime });
And finally:
schedulerData.setLocaleMoment(moment);