admin管理员组文章数量:1327750
I'm trying to upgrading fullCalendar from 1.6 to 3.0
Previously my titleFormat was :
titleFormat: {
month: "MMMM yyyy",
week: "'Week from 'd [MMMM] { 'to' d MMMM yyyy}",
day: "dddd d MMMM yyyy"
},
Now I use the view specific options as describe in the titleFormat documentation :
views: {
month: {
titleFormat: "MMMM YYYY",
},
week: {
columnFormat: "dddd d",
},
day: {
titleFormat: "dddd d MMMM YYYY",
columnFormat: "dddd d",
}
},
But I can't reproduce the same text for the week. Indeed, according to the formatRange
documentation:
FullCalendar will intelligently use it to format both dates with a dash in between.
Am I missing something ?
I'm trying to upgrading fullCalendar from 1.6 to 3.0
Previously my titleFormat was :
titleFormat: {
month: "MMMM yyyy",
week: "'Week from 'd [MMMM] { 'to' d MMMM yyyy}",
day: "dddd d MMMM yyyy"
},
Now I use the view specific options as describe in the titleFormat documentation :
views: {
month: {
titleFormat: "MMMM YYYY",
},
week: {
columnFormat: "dddd d",
},
day: {
titleFormat: "dddd d MMMM YYYY",
columnFormat: "dddd d",
}
},
But I can't reproduce the same text for the week. Indeed, according to the formatRange
documentation:
FullCalendar will intelligently use it to format both dates with a dash in between.
Am I missing something ?
Share Improve this question edited Nov 8, 2016 at 19:40 George Kagan 6,1348 gold badges49 silver badges50 bronze badges asked Nov 8, 2016 at 15:27 PakPak 2,7763 gold badges22 silver badges28 bronze badges1 Answer
Reset to default 6I got the answer on github
possible with the momentjs literal text formatting (with the [ ] mands) as well as the undocumented titleRangeSeparator setting:
views: { week: { titleFormat: '[Week from] D MMMM YYYY', titleRangeSeparator: ' to ', } },
http://jsbin./nuruxizuli/1/edit?js,output
本文标签: javascriptCustom titleFormat for week view in fullCalendarStack Overflow
版权声明:本文标题:javascript - Custom titleFormat for week view in fullCalendar - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742226025a2436331.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论