react-big-scheduler icon indicating copy to clipboard operation
react-big-scheduler copied to clipboard

React Big Scheduler - Antd date picker changes

Open Ramesraina opened this issue 4 years ago • 1 comments

Hi,

Is there any possible way to change antd date picker week day starts from "Monday" in react big scheduler????

Ramesraina avatar Aug 04 '20 14:08 Ramesraina

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);

desarrolladorProm avatar Dec 28 '20 21:12 desarrolladorProm