Nifty Date Picker – With Year Selector
Using a relatively unknown feature of a combobox, I have added a year selector to the Nifty Date Picker. It would be fairly simple to add a list of years into the combobox as a value list, but you would be stuck with a hard coded range of years. If you had an application where you were entering dates in the distant past or future, then it would be restrictive.
Overtime the value list of dates would become outdated and need to be updated to make it relevant again. Many years ago I came across the “Call Back Function” the example I saw was used to to display a list of years, exactly as I have duplicated here in my “Nifty Date Picker” I lost this example, and it only recently since seeing a YouTube by Crystal Long that I thought I should look at it again.
In Video 1 Below, I demonstrate both the “Year Picker” and the “Month Picker” both of which are based on “Call Back Functions”
In a future video I will explain the callback function how it works.
Nifty Date Picker – With Year Selector
Nifty Date Picker – With Year Selector
Video 1 (03:33)
This YouTube is a quick look at an implementation of the combobox Callback Function in action.
Video 1 (03:33)
Play Video
… …