fgelinas / timepicker

A jQuery UI Time Picker
http://fgelinas.com/code/timepicker
GNU General Public License v2.0
266 stars 84 forks source link

Extra classes #80

Open mnpenner opened 10 years ago

mnpenner commented 10 years ago

Would it be possible to get 3 extra CSS classes?

  1. On the th for the "period" related to the hour you are hovering over
  2. On the th for the "period" you currently have selected
  3. On the tds for the closest hour and minute to the current time (jQuery UI datepicker gives us ui-datepicker-current-day -- perhaps ui-timepicker-current-time would be appropriate)

The first two are especially useful for those of us using 12-hour clocks. I want to make sure my users are picking the correct 8 o'clock, for example.

Edit: And perhaps a couple more for us to differentiate the "AM" cells from the "PM" cells.

michael-zock commented 10 years ago

Another vote for this!. Even in 24-hour mode, those helper classes would offer more control over the widget's styling.