firstDayOfWeek - froze page

Hi guys,

One more error, 

When I want to change the first day of the week with - firstDayOfWeek as documentation says https://ej2.syncfusion.com/documentation/schedule/working-days/#setting-start-day-of-the-week
page got frozen.

I check this error on Chrome, Safari, my developing app and on stackblitz.co. Result is the same, everything got frozen.

I think that you don't need any code example, just check it here:  https://stackblitz.com/edit/4a3eli-v4dtqh?file=index.js

Cheers


1 Reply

RV Ravikumar Venkatesan Syncfusion Team March 7, 2023 07:18 AM UTC

Hi Sinisa,


Sample: https://stackblitz.com/edit/ej2-js-schedule-first-day-of-week-sample?file=index.js


In your shared sample you have used the firstyDayOfWeek property value as a string which is causing your reported problem while opening the editor window. The firstyDayOfWeek property accepts the value in the number type. So, you need to provide the value as a number type as highlighted in the below code snippet.


[index.js]

var scheduleObj = new ej.schedule.Schedule({

  firstDayOfWeek: 1,

});


Regards,

Ravikumar Venkatesan


Loader.
Up arrow icon