Full Calendar
Dependency :
compile ":full-calendar:1.5.1.0"
Summary
Installation
grails install-plugin full-calendar
Description
Adam Shaw has written a full page javascript calendar component using jQuery:
http://arshaw.com/fullcalendar/
See the page above and the Screenshots tab for more.To use the unminimised version of fullcalendar.js add the debug option:
Then you can either use the javascript directly in the page, as specified at http://arshaw.com/fullcalendar/docs/usage/:
Or there is a very simple tag to output the javascript above, with the body of the tag being output into the 'put your options and callbacks here' line above:
There is comprehensive documentation about all the available options at http://arshaw.com/fullcalendar/docs/If you check out the plugin source from https://svn.codehaus.org/grails-plugins/grails-full-calendar/tags/LATEST_RELEASE/ and run it with there's a demo page at http://localhost:8080/full-calendar/index.gsp showing some of the javascript options in action - such as how to add events, which is not initially obvious.
Usage
Add the following tag to the head to include the fullcalendar javascript and css, as well as jquery and jquery-ui resources.<fullcal:resources/>
<fullcal:resources debug="true"/>$(document).ready(function() { // page is now ready, initialize the calendar... $('#calendar').fullCalendar({
// put your options and callbacks here
})});<fullcal:calendar id="cal"> header: { left: "", center: "", right: "prev, today, next" }, columnFormat: { week: 'ddd d/M' }, timeFormat: 'HH:mm{ - HH:mm}' </fullcal:calendar>
grails run-app