vitalets / combodate

Dropdown date and time picker
http://vitalets.github.com/combodate
207 stars 82 forks source link

Events/Callbacks? #59

Open rtsalamone opened 8 years ago

rtsalamone commented 8 years ago

It would really be helpful if some life-cycle events were fired.

In my specific use case, I wanted to apply the select2 enhancements to my combodate. This had to be done after combodate finished altering the page markup.

As a temporary measure, I added a callback option, in order to pass in a function, and then called it from the bottom of the combodate init method.

It is such a hack that I am ashamed to publish it! What is needed is a well thought out implementation — Callbacks vs events, etc. Hoping somebody might find time to do this