Jun 20 2009

jQuery Week Calendar 1.2.0 Release

rob

A new release of the week calendar plugin has been published with a number of enhancements and bug fixes. Part of this release included an internal refactoring to base the calendar off the jQuery-UI widget framework. I think this has helped to clean the code up and certainly simplified things. I think there’s still more that can be done in this area andĀ  I expect to refine the internals over the next couple of releases. If anyone’s interested in a run down on the jQuery-UI widget structure, I found this to be a very helpful article.

This release contains the following improvements:

  • Added better layout support for overlapping of events (there are still some improvements to be made in this area but it’s a lot better than it was)
  • Added ability to supply formatters for dates and times. You can also define your own day, month name arrays to be used by the date and time formatters.
  • Added improved demo with creation / editing of events using jquery ui.
  • All demos are now served directly out of google code svn
  • Added option to only display hours defined in the ‘businessHours’ config option.
  • Migrated code-base to extend jquery-ui widget.
  • Improved inline method documentation.
  • Added ‘readonly’ config option to flag the entire calendar as readonly, preventing creation, dragging, dropping and resizing of events.
  • Added ability to configure day, month names for better i18n support
  • Fixed bug with IE7 resizing once an event gets to 2 timeslots or smaller
  • Added public method for returning an array of valid timeslotsĀ  for a given date based on the calendar options. Useful for populating select fields with start and end times.

Thanks to everyone who’s helped submitting bug reports, feature requests. I attempted to get the most pressing ones out in this release and hope to follow it up with another release in the next week or so.


May 5 2009

New jQuery Weekly Calendar Plugin

rob

After being inspired by the recent fullcalendar (month based) plugin by Adam Shaw, I decided to port a weekly calendar i’ve been working on into a proper jquery plugin. Until a couple of days ago it was practically impossible to use this calendar functionality outside of it’s host application but now it should be simple to integrate it into any jquery-ui based application.

I made a conscious decision to base the week calendar api off the fullcalendar plugin, using the same event names where it makes sense and most importantly to use an identical data format. The idea being that the two plugins could co-exist utilising an identical data source and similar programming style.

You can see the full details of the plugin on the project page but to summarise the feature set:

  • Display of calendar events within a weekly grid
  • Calendar events can be supplied as an array, url or function returning json
  • Calendar events can be dragged, dropped and resized
  • Lots of callbacks for customizing the way events are rendered plus callbacks for drag, drop, resize, mouseover, click etc
  • Automatically scrolls to current time
  • Extend the core calendar event data structure with your own data
  • Compatible with FullCalendar data sources with very similar events
jquery week calendar

jquery week calendar

At this stage there is only a basic demo in place but when time permits i’ll add a series of demos that help to show how you might extend it to fit your application requirements such as:

  • Modification of rendered events based on custom data / logic
  • Using jquery ui dialog for creating and editing events
  • Using some of the other events to provide a better experience

This plugin is an early release and i’d expect follow up revisions to be coming out very soon. Any feedback, bug reports etc would be welcome.

Check out the full documentation and demo here