brospars / simple-calendar

Simple calendar jquery plugin
https://brospars.github.io/simple-calendar
MIT License
49 stars 38 forks source link

Add onEventSelect callback with the ability to use $(this).data('event') #18

Closed valerio-bozzolan closed 4 years ago

valerio-bozzolan commented 4 years ago

I've added an onEventSelect callback, and the ability to access $(this).data('event') in such callback.

Example:

onEventSelect: function() {
   var event = $(this).data('event');
   console.log( event );
   alert( "Clicked!" );
}
brospars commented 4 years ago

Thank you for this pull request. Great work, clean and concise.