V-calendar: Unable to find a way to change the first day of week

Created on 21 Dec 2017  路  3Comments  路  Source: nathanreyes/v-calendar

Hey =)
I was wondering if there is a way to change the first day of week, i went through the documentation a couple of times but i don't find any hints on how to do that.
If it is possible, could you show me how to do that ?
Thanks a lot for your work, this library is cleary the greatest calendar library i have found for vue.js =)

Most helpful comment

Yes. When you use the plugin pass in firstDayOfWeek as one of the default settings, among others if you desire.

Vue.use(VCalendar, { firstDayOfWeek: 3 }); // Tuesday as first day of week

Apologies for the lack of clarity on this. I will keep this issue open until the documentation has been updated.

All 3 comments

Yes. When you use the plugin pass in firstDayOfWeek as one of the default settings, among others if you desire.

Vue.use(VCalendar, { firstDayOfWeek: 3 }); // Tuesday as first day of week

Apologies for the lack of clarity on this. I will keep this issue open until the documentation has been updated.

Ok, thank you very much for the quick reply!

This is not working for me.
"v-calendar": "^1.0.8",
"nuxt": "^2.9.0",

import Vue from 'vue'
import Vcalendar from 'v-calendar'

Vue.use(Vcalendar, {
    firstDayOfWeek: 2,
})

But result is not changed. @nathanreyes . I have done like so - :first-day-of-week="2" and it worked. I cant set globally first day of week. Please tell why this is not effecting globally.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mika76 picture mika76  路  3Comments

garygreen picture garygreen  路  3Comments

neel picture neel  路  3Comments

octaviangrozman picture octaviangrozman  路  4Comments

knagyorg picture knagyorg  路  4Comments