Update – this Drag and Drop post covers some other aspects of this plug-in.
So on another project, we needed to be able to see the calendar agenda day view with it split into vertical columns for each ‘resource’. There are a few forks that are doing this with FullCalendar but they aren’t really suitable for us. One has resource rows rather than columns and the other is a fork of an old version of the FullCalendar code.
So I went ahead and forked the source on github. The goal was to keep the forked version as similar to the core as possible – that way upstream merging should be easier.
Here is a working demo of the plugin with resources.
The source code of it is here. Get the V2 js and css from here – https://github.com/seankenny/fullcalendar/tree/v2/dist.
The only difference to the consumer of the plugin is that there is a new option (‘resources’) and there is a new property on the
resources that we use to tie back to the relevant resource using the id.
The resources option can contain either the resources objets or a url that will return a JSON array.
1 2 3 4 5 6 7 8 9 10 11 12
event.resources property can take any of the following formats:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
The resources option on the calendar object also accepts a
className to allow the styling of the individual resource columns: