Sto tentando di utilizzare l'opzione Ora lavorativa, ma non riesco a riflettere le modifiche.Orario di lavoro completo
voglio visualizzare più le ore di lavoro
ecco il codice;
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
defaultDate: '2014-11-12',
editable: true,
eventLimit: true, // allow "more" link when too many events
businessHours:
[
{
start: '10:00', // a start time (10am in this example)
end: '12:00', // an end time (12pm in this example)
dow: [ 1,2,3,4 ]
// days of week. an array of zero-based day of week integers (0=Sunday)
// (Monday-Thursday in this example)
},
{
start: '12:00', // a start time (12pm in this example)
end: '18:00', // an end time (6pm in this example)
dow: [ 1,2,3,4 ]
// days of week. an array of zero-based day of week integers (0=Sunday)
// (Monday-Thursday in this example)
}]
});
Grazie bro, ho provato il suo bel lavoro, ma la sua non lavorare per più ore lavorative di ogni giorno (intendo cambiare) shift1: 8 -> 12 shift2: 14 -> 20 var BusinessHours = [{"start": '08: 00: 00 ', "fine": '12: 00: 00', "dow": [1, 2, 3, 4] }, { "start": ' 14:00:00 ', "fine": '20: 00: 00', "dow": [1, 2, 3, 4] }]; non funziona –
Raccomando di sfruttare gli eventi in background per quello. Controllali nella documentazione. Funzionano più come eventi, ma puoi quindi collegarli alla funzionalità di altri eventi. Lo aggiungerò alla mia risposta se è ok. – DoverAudio