I'm using jQuery fullCalendar. A client wants to see only their bussiness opening hours in the calendar. Is that possible? How?
Example: a bussiness opens from 9am to 1pm and from 3pm to 10pm
To have the events not show during business hours, you could use repeating events for the segments which are in business hours, and update them in the eventRender callback if the event is dragged. OK got it @acerix thank you. Other question is that possible dynamically change "duration" or "end date" of event in "eventDragStart" callback?
By default, Monday-Friday, 9am-5pm. If true, the default business hours will be emphasized ( view live demo ). If false (the default), there will be no emphasis. An object may be given to render business hours with fine-grain control over the days/hours. The object may have any of the following properties:
An object may be given to render business hours with fine-grain control over the days/hours. The object may have any of the following properties: You may also break your business hour declaration into parts, in an array of objects, for additional control:
Emphasize a view’s “business hours” (aka “working hours”). Emphasizes certain time slots on the calendar. By default, Monday-Friday, 9am-5pm. The main businessHours settings can be applied more granularly to individual resources via the businessHours property on the Resource input
The minTime and maxTime options will let you set the first and last hour. I don't think you can have a calendar with a break in the middel though.
Maybe you could create a recurring event called lunch and color it differently to your actual events
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With