FullCalendar show only weekDays

筅森魡賤 提交于 2019-11-30 09:45:30

问题


Hello guys I'm trying to show a week timetable, I must show only the name of the date, without date. Such as time table in agenda view. User must be able to select a range in day of the week. For example John Doe Monday from 15:00 to 18:00, Martin Friday from 9:00 to 15:00, and so...

I just try to create my personal view as "settimana" like this:

$('#calendar').fullCalendar({
   header: {
       left:'',
       center:'',
       right:'',
    }, 
    editable: true,
    views: {
        settimana:{
            type:'agendaWeek',
            duration: { days: 7 },
            title: 'Apertura',
        }
    },
    defaultView: 'settimana',
});

How can I do it? What I must set in option when calling jQuery fullCalendar plugin?

Thank you very much.


回答1:


This shows only Monday - Friday http://jsfiddle.net/w11xw5gt/1/

$('#calendar').fullCalendar({
    header: {
        left: '',
        center: '',
        right: '',
    },
    editable: true,
    views: {
        settimana: {
            type: 'agendaWeek',
            duration: {
                days: 7
            },
            title: 'Apertura',
            columnFormat: 'dddd', // Format the day to only show like 'Monday'
            hiddenDays: [0, 6] // Hide Sunday and Saturday?
        }
    },
    defaultView: 'settimana',
});

See Info for display options and text/time customization



来源:https://stackoverflow.com/questions/33673487/fullcalendar-show-only-weekdays

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