Ultra-light jQuery calendar
CalendarPicker: a new concept for date selection.
Sometime I maintain my promises (rarely indeed ), so I worked a little bit on CalendarPicker, receiving some suggestions from my previous post.
First of all thanks to everybody for precious feedbacks.
The hottest news in CalendarPicker is the usage of mouse wheel to change dates; it is enabled on years, months and days bars.
Then I changed a little the CSS to enhance “today” with a yellow border.
Another new feature is the ability of customizing the amount of years/month/days displayed, so you can have bizarre configurations like these:
Maxime Haineault argued that the next/prev buttons are no fashionable: now you can hide them!
Introducing the wheel movement I had to optimize calls, so callback function is invoked only when the user stops to play with the wheel.
I tried to maintain the code short (actually 180 rows), but the customization of years/months/days requires some computation for cell size; I first tried using only css properties in order to makes cells sharing space equally, but no luck. I need a css-expert’s hint!
You can see CalendarPicker at work here.