Add event delete feature #80

merged 2 commits into from Dec 8, 2011


None yet

2 participants


I was looking for a UI based event delete option. This adds the following options:

  • allowEventDelete: [boolean | default: false ] globally enable / disable delete features, defaults to false for backward compatibility
  • eventDelete : [function(calEvent, element, freeBusyManager, $calendar, DomEvent)] Called when user clicks on the wc-cal-event-delete element. Defaults to a function which "removeEvent" for calEvent.
  • deletable: [function(calEvent, eventElement)] Called when each event is rendered to determine if it should be deletable. Defaults to a function which returns true for all events.

A deletable event is rendered with an additional element in the header with class wc-cal-event-delete.

I updated demo 2 with a new data set including options to show the use of the delete options.

@themouette themouette merged commit 4328d5b into themouette:master Dec 8, 2011

thanks for sharing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment