TimeTextBox: filter drop down items based on what user has typed in, like ComboBox
As per discussion with Nikolai (see http://www.dojotoolkit.org/forum/dijit-dijit-0-9/dijit-development-discussion/time-picker), make the TimeTextBox filter the list of choices in the drop down based on what the user has typed into the input box, similar to how ComboBox works.
As per implementation, not sure that TimeTextBox should actually extend ComboBox, as that might be killing a fly with a sledgehammer, but in any case that functionality would be good to speed up user input, especially for users not using the mouse (either due to disability or because data entry people tend to do everything with the keyboard, since it's faster).
Change History (5)
Description: |
modified (diff)
|
Description: |
modified (diff)
|
Owner: |
set to nathan
|
Status: |
new →
assigned
|
Resolution: |
→ fixed
|
Status: |
assigned →
closed
|
Component: |
Dijit →
Dijit - Form
|
http://nikolaionken.com/dojo/demo/dijit/tests/form/test_TimeComboBox.html shows how it can work. This is very rough code so its supposed to just show the possible features.
Following features might be desirable:
setCompare: lets a second timebox let itself compare to a first one and display the difference (e.g. "09:00 (2.5 hrs)" ), note that if this feature is implemented you also need a flag whether to allow negative differences e.g. first valus is 09:00 and second is 08:00
setCompareSpan(): not sure if that is the right approach, but when using two date pickers and two timepickers to define a span such as 2008.03.21 18:00:00 until 2008.03.22 14:00:00 both text and time boxes have to validate. Note when setting start and end it gets a bit more complicated
start, end: limit the values displayed
interval: displayed time interval in minutes
allow any time: independent from the interval any time should or should not be allowed depending on a flag