mdehoog / Semantic-UI-Calendar

Calendar module for Semantic UI
MIT License
805 stars 127 forks source link

A way to set firstDayOfWeek globally #100

Open Mariusmssj opened 7 years ago

Mariusmssj commented 7 years ago

I am trying to set the firstDayOfWeek to be Monday:1 instead of Sunday:0 but it seems that the only way to do is for every single calender separately. Is there a way to set the global option so that every calendar starts with Monday instead of Sunday. I looked at $.fn.calendar.settings ={} in calendar.js file and changed the firstDayOfWeek:1 but that made no difference. Is there a way to set the global option so that every calendar starts with Monday instead of Sunday.

Thanks

Bredo commented 6 years ago

This should be set in the localization options - something this plugin is unfortunately missing as of now 😢

lubber-de commented 5 years ago
$.fn.calendar.settings.firstDayOfWeek = 1;

works just fine, see http://jsfiddle.net/50m7sj8f/ using the merged version of https://github.com/fomantic/Fomantic-UI