Closed fardjad closed 10 years ago
Thanks! Could this problem also be solved by https://github.com/quicksketch/timezonepicker/pull/5? That would allow you to bind directly to the browser-level change events.
Otherwise, this looks like a good option to have, but it should also be documented.
Yes, but I think this one is more flexible than #5.
I already added the following lines to README.md
// A function to be called upon timezone change
// timezoneName, countryName, and offset will be passed as arguments
changeHandler: null
should I document it anywhere else?
Sure, I think that would be adequate. I've got a few other minor nitpicks that I'll add to the diff.
Done.
Super. Thanks!
I just added the
changeHandler
option.It should be a function with the following signature:
which gets called upon timezone change.
That makes
timezonepicker
much easier to use on Android/JavaFX WebView or similar environments via a bridge.Also I used uglifyjs with default options for minification. Let me know if there's a better minifier/configuration that I should use.