fgelinas/timepicker — Issue #23: custom and default formatter?
Author: tribalvibes
Created: 2011-10-15 21:41:47+00:00
State: open

Thanks for writing this, very nice. Unfortunately it suffers the same design defects as jQuery UI/datepicker which is that it tries to do everything with configuration options and as a result is bloated and inflexible. I'd much rather see something more loosely coupled and much slimmer, with sensible overrides. For example, say we want to pass in a custom time formatter, so that whole hours are formatted e.g. as "8pm" and minutes shown only if non-zero. We already have such a formatter--how could we get timepicker to use it? And thus could also remove all of those configuration options, saving weight.