Opened 12 years ago

Closed 12 years ago

Last modified 8 years ago

#3680 closed enhancement (fixed)

[patch][cla] ComboBox should allow an initial query to restrict the items included.

Reported by: Mignon Belongie Owned by: bill
Priority: high Milestone: 1.0
Component: Dijit - Form Version: 0.9
Keywords: ComboBox Cc:
Blocked By: Blocking:

Description

It would be useful to be able to specify an initial query along with the data store when instantiating a ComboBox?.

I'm attaching a patch for ComboBox?.js that enables this, and also one for test_ComboBox.html with a new test. For the latter test to work, it will also be necessary to make a copy of dojo estsdatageography_hierarchy_large.json in dijit estsform.

Attachments (2)

ComboBox.patch (1.1 KB) - added by Mignon Belongie 12 years ago.
test_ComboBox.patch (945 bytes) - added by Mignon Belongie 12 years ago.

Download all attachments as: .zip

Change History (5)

Changed 12 years ago by Mignon Belongie

Attachment: ComboBox.patch added

Changed 12 years ago by Mignon Belongie

Attachment: test_ComboBox.patch added

comment:1 Changed 12 years ago by bill

Milestone: 1.0

comment:2 Changed 12 years ago by skinner

Resolution: fixed
Status: newclosed

(In [9579]) fixes #3680 Made it possible to set an initial query that the ComboBox? uses when fetching items from the datastore. (After checking with Bill, I used the keyword 'query', to match what Tree already uses, rather than the keyword 'initialQuery' that was supplied in the patch.)

comment:3 Changed 8 years ago by bill

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