简体   繁体   中英

Is it possible to set first day of alloy-ui scheduler weekview to monday insted sunday?

I'am using alloyui scheduler and weekview. I want to show from monday to sunday, not sunday to saturday.

Is it possible to set first day of alloy-ui scheduler weekview to monday insted sunday? I want week view to show monday first and sunday last. Is it possible?

Here is my code:

YUI({lang: 'nb-NO'}).use('aui-scheduler',
        function (Y) {

            new Y.Scheduler(
                    {
                        boundingBox: '#myScheduler',
                        //eventRecorder: eventRecorder,
                        date: date,
                        items: events,
                        render: true,

                        views: [
                            new Y.SchedulerWeekView({
                                isoTime: true,
                                headerView: false
                            })
                        ]

                    }
            );
        }
);

I found the solution. For anyone need it just add firstDayOfWeek: 1 to scheduler.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM