javascript - Variable business hours in Fullcalendar -
i'm working fullcalendar , i'm using business has varying hours
mon, tue, wed, fri 09:00 - 17:00.
thu 09:00 - 19:00.
businesshours: { start: '09:00', // start time (10am in example) end: '17:00', // end time (6pm in example) dow: [ 1, 2, 3, 5] // days of week. array of zero-based day of week integers (0=sunday) // (monday-thursday in example) }
http://fullcalendar.io/docs/display/businesshours/
how can achieved?
to use variable hours business hours, need use background events this:
events: [ { id: 'available_hours', start: '2015-1-13t8:00:00', end: '2015-1-13t19:00:00', rendering: 'background' }, { id: 'available_hours', start: '2015-1-14t8:00:00', end: '2015-1-14t17:00:00', rendering: 'background' }, { id: 'work', start: '2015-1-13t10:00:00', end: '2015-1-13t16:00:00', constraint: 'available_hours' } ]
notice in last event has constraint filled in? says can placed within available hours slot. using constraints, can make flexible business hours.
for more information, see link, http://fullcalendar.io/docs/event_ui/eventconstraint/
Comments
Post a Comment