Jquery datebox 日历周开始日
I am trying out Jquery Mobile DateBox.
See here: mobile date box
In the calendar I need to week to start on Monday instead of Sundays.
How can I set this please?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在日历输入的“数据选项”中使用值为“1”的“overrideCalStartDay”。这对我有用。
Use "overrideCalStartDay" with value "1" in the "data-options" of calendars input. It works for me.
在源代码中,以下数组保留星期几:
也许如果您通过一些调整(如果需要)更改此处的顺序,您可以根据需要更改顺序。
In the source code the following array keeps the days of the week:
Perhaps if you change the order here with a bit of tweaking (if necessary) you can change the order as you need.
好吧,这有点事后,但我已经开始添加这个选项了。碰巧的是,几年前,我的一位同事从周一开始了我们的工作日历,从那以后我就讨厌它了。然而,有几个地方提出了要求,现在它已经存在了。
其中calStartDay采用标准形式:0=星期日,1=星期一,... 6=星期六。
Well, this is a bit after the fact, but I have gotten around to adding this option. As it happens, a few years back, a colleague of mine started our work calendars on Monday, and I have hated it ever since. However, it was requested a few places, and it now exists.
Where calStartDay is in the standard form of 0=Sunday, 1=Monday, ... 6=Saturday.