alongubkin / angular-datepicker

Angular.js Date/Time Picker
MIT License
291 stars 129 forks source link

Options support onClose and onSet #15

Closed jonotron closed 10 years ago

jonotron commented 10 years ago

This allows an options object to also provide onClose and onSet event callbacks. Previously the directive would overwrite these specific callbacks with it's own required functionality. Now the picker will call the user provided onClose and onSet (if specified) and then execute it's normal onClose and onSet logic.

Included some brief documentation on how to provide options and bumped the version to 1.0.3

jonotron commented 10 years ago

I just noticed that my commit 2828ac4f54c921594fe0a3ee289c87129f68b7c5 was missing some words (I used backticks in the commit message).

It should read "Document the use of pick-a-date-options and pick-a-time-options"

Apologies. :)

alongubkin commented 10 years ago

Thanks for your contributions!