FullCalendar - ümlaut in Week View Title

Deadly 提交于 2019-12-10 23:59:40

问题


Has anyone run into this strange issue?

I can't seem to override this formatting in FullCalendar.io.

I am simply looking to use a dash ("-") rather than the ümlaut 'W'.

Current code is as below:

header: {
    left: 'prev,next today',
    center: 'title',
    right: 'month,agendaWeek,agendaDay'
},
lang: 'en',

views: {
    agenda: {
        minTime: '06:00',
        maxTime: '19:00'
    },
    week: {
        titleFormat: 'MMM D YYYY'
    },
}


回答1:


I found you can set the separator yourself like this:

titleRangeSeparator: "-"

Just add it at the end of the options and it should work.



来源:https://stackoverflow.com/questions/34259866/fullcalendar-%c3%bcmlaut-in-week-view-title

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!