| Issue 2421: | Multiple definitions for businessHours | |
| 8 people starred this issue and may be notified of changes. | Back to list |
bi ve seen this been asked over stackoverflow etc quite often. And was really great to see it being implemented.
However would it be possible to make it one step further?
Instead of applying
this structure
{
start: '10:00', // a start time (10am 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)
}
to be able to apply specific ranges per day? for instance 10-18 1,2,3
8-14 and 17-21:00 4,5,6 etc?
this way it would be possible to make it more customizable
Apr 19, 2015
Issue 2465 has been merged into this issue.
May 21, 2015
Hi I'm interested in solving this particular bug: is anyone working on it?
May 21, 2015
I just forked the main repo to https://github.com/dtmonterrey/fullcalendar and implemented a solution that worked for my needs. I also have create a pull request. Any comments are welcome.
May 21, 2015
Hi Evan can you please share what you have impelented and how is it used
May 21, 2015
Hi The change is on this commit https://github.com/dtmonterrey/fullcalendar/commit/d9848d0ae7d7dae0f0340c62ce38b8acc0d03b62 Just look at the diff of the file EventManager.js Also have a look at the question on StackOverflow http://stackoverflow.com/questions/30308737/mutliple-business-hours-in-full-calendar-with-two-shifts-each-day/30380267#30380267
Jul 20, 2015
Hi Evan, I must be missing something. I have copied your code identically and I only get the standard 9to5 business hours. I do not understand where the "EventManager.js" should be put. Can you help?
Jul 20, 2015
Hi Steven You don't need EventManager.js just clone the repo cd into it and do ./build/init.sh You need npm, grunt-cli and bower installed. Check this pages https://docs.npmjs.com/getting-started/what-is-npm http://gruntjs.com/getting-started http://bower.io/#install-bower Then just use the fullcalendar.min.css fullcalendar.min.js from ./dist/ You also need jQuery. A shortcut: use the files from the demo http://eo14.com/static/fullcalendar/ Hope this helps
Aug 21, 2015
Discussion for this issue has moved to the following URL: https://github.com/fullcalendar/fullcalendar/issues/2686 This is because Google Code is shutting down. Apologies if you are being pestered with these notifications. This is a one-time event. Happy coding, Adam
Status:
ExportedToGithub
|
|
| ► Sign in to add a comment |
Status: Accepted
Labels: Type-Feature