Ticket #3270 (closed task: fixed)

Opened 14 months ago

Last modified 4 months ago

[cla][patch][test] Select: build new HTML select widget

Reported by: bill Owned by: dante
Priority: normal Milestone: 1.1
Component: DojoX Form Version: 0.9
Severity: normal Keywords:
Cc: nathan

Description

Make a select widget similar to the browser's or OS's select boxes. It can have fancy HTML in the drop down list, and the selected item's fancy HTML gets copied to the left of the arrow when you select it.

Probably won't have filtering by typing a string, since there's no input box, and since the drop down items can be arbitrary HTML, including a simple image.

The data list will always be short (usually <10 items) and will usually be embedded in the HTML file like a normal select, so not sure if we even need a dojo.data interface.

Attachments

DropDownSelect.patch (21.7 kB) - added by nathan 4 months ago.
atch which adds dojox.form.DropDownSelect?. It handles rich text as desired.
DropDownSelect.2.patch (23.0 kB) - added by nathan 4 months ago.
Updated file with better tests (images, different font sizes, line breaks) and a fix to onChange not firing.

Change History

Changed 11 months ago by peller

  • milestone changed from 1.0 to 2.0

Changed 5 months ago by alex

  • milestone changed from 2.0 to 1.3

Milestone 2.0 deleted

Changed 4 months ago by nathan

  • cc nathan added

Changed 4 months ago by nathan

I have created a "DropDownSelect?" widget which does what I think you are looking for. I will attach a patch for it (in dojox.form.DropDownSelect?)

Let me know if this is useful, or if there is anything else that would be needed for inclusion (maybe it can go into 1.1 as a part of dojox.form - and get moved into dijit.form over time...)

Changed 4 months ago by nathan

  • summary changed from Select: build new HTML select widget to [cla][patch][test] Select: build new HTML select widget

Changed 4 months ago by nathan

atch which adds dojox.form.DropDownSelect?. It handles rich text as desired.

Changed 4 months ago by nathan

Updated file with better tests (images, different font sizes, line breaks) and a fix to onChange not firing.

Changed 4 months ago by bill

  • owner changed from haysmark to phiggins
  • component changed from Dijit to DojoX Form
  • milestone changed from 1.3 to 1.1

I looked over the code very briefly, didn't notice any glaring issues, and the demo looks great. Assigning to phiggins to check into dojox for now (if it meets his approval).

Changed 4 months ago by bill

  • owner changed from phiggins to dante

Changed 4 months ago by dante

  • status changed from new to closed
  • resolution set to fixed

(In [13085]) fixes #3270 - another awesome patch from nathan toone - proxy commit DropDownSelect? into dojox.form

Note: See TracTickets for help on using tickets.