Fullcalendar scheduler columnFormat & slotLabelFormat

I am using the fullcalendar scheduler and trying to set the time format on the timeline in the 24:00 format, not in the 12:00 or PM format.

The default timeline view is in the format of 12 am / pm, and on the three-day timeline there is an additional line at the top for the day http://fullcalendar.io/scheduler/ .

I think that columnformatmight be the key here. but unfortunately, when I use slotLabelFormat:'H:mm'to get the time display format at 24:00, the columns displaying the date disappear in the 3-day view.

Is this a mistake or am I doing something wrong?

+4
source share
1

:

           views: {
            timelineThreeDays: {
                type: 'timeline',
                slotLabelFormat: [
                'ddd D/M',
                'H:mm'
                ],
                columnFormat: 'ddd D.M',
                duration: { days: 3 }
            }               
        },
+5

Source: https://habr.com/ru/post/1616159/


All Articles