Opened 11 years ago

Closed 11 years ago

Last modified 8 years ago

#5639 closed defect (fixed)

TimeTextBox: filter drop down items based on what user has typed in, like ComboBox

Reported by: bill Owned by: nathan
Priority: high Milestone: 1.2
Component: Dijit - Form Version: 1.0
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by nathan)

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)

comment:1 Changed 11 years ago by bill

Description: modified (diff)

comment:2 Changed 11 years ago by nathan

Description: modified (diff)
Owner: set to nathan
Status: newassigned

comment:3 Changed 11 years ago by nonken

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

comment:4 Changed 11 years ago by Nathan Toone

Resolution: fixed
Status: assignedclosed

(In [13456]) fixes #5639, refs #6416: added filtering to the timepicker and up/down arrow support for the time picker as well. also some minor theme fixes !strict

comment:5 Changed 8 years ago by bill

Component: DijitDijit - Form
Note: See TracTickets for help on using tickets.