Opened 12 years ago

Closed 12 years ago

Last modified 8 years ago

#5359 closed enhancement (fixed)

select type widgets should support native size and multiple attributes

Reported by: Douglas Hays Owned by: bill
Priority: high Milestone: 1.1
Component: Dijit - Form Version: 0.9
Keywords: Cc:
Blocked By: Blocking:

Description

Neither ComboBox? nor FilteringSelect? support the size and multiple attributes that can be set using a native html select.

http://www.htmlcodetutorial.com/forms/_SELECT_SIZE.html

http://www.htmlcodetutorial.com/forms/_SELECT_MULTIPLE.html

Change History (11)

comment:1 Changed 12 years ago by bill

Hi guys, there was a recent discussion (http://dojotoolkit.org/2007/11/21/widget-wish-list-response#comment-9571) about having such a multi-select widget, but I figured it would be a different widget, rather than part of ComboBox / FilteringSelect. It doesn't seem like the filtering capability is needed along with multi-select, and I'm not sure how the interface would look/work. I figured we'd just have something that looks like the native multi-select, but with the ability to add images and custom HTML to each choice.

Anyway let's discuss it some before implementing anything.

comment:3 Changed 12 years ago by dante

(In [12012]) refs #4408, #5359, #5550 - adds semantic degradable textarea, select, and hidden input types that work with dijit.form.Form

comment:4 Changed 12 years ago by bill

Hi. That looks like a good start and worthy of adding to dijit now; eventually I'd like the multi-select widget to support rich text (ie, HTML embedded in each option tag), which will require a complete rearchitecture, including a11y support. (Currently a11y should work transparently since you are using a native <select> node as your template.)

comment:5 Changed 12 years ago by bill

Owner: changed from haysmark to bill
Status: newassigned

OK, I'm moving/porting this over from Peter's widget in dojox.

comment:6 Changed 12 years ago by bill

Resolution: fixed
Status: assignedclosed

(In [12182]) Move dojox.widget.Select to dijit.form.MultiSelect?. Also refactors the code and fixes some bugs. Fixes #5359.

comment:7 Changed 12 years ago by bill

(In [12183]) Update dijit.form.Form to handle MultiSelect?. Refs #5359.

comment:8 Changed 12 years ago by bill

(In [12189]) "Hidden" widget, copied over from dojox. The "Hidden" widget is basically equivalent to <input dojoType="dijit.form.TextBox?" type="hidden"> but with less overhead; not sure if it's worth having a separate widget for hidden input fields but adding for now. Fixes #5700.

Also checking in forgotten updates to Form test for MultiSelect?. Refs #5359.

comment:9 Changed 12 years ago by bill

(In [12210]) Remove dojox.FormWidgets? since they've been moved to dijit. Refs #5359, #5550, #5700

comment:10 Changed 11 years ago by bill

(In [13096]) Must have isDebug: true to display firebug-lite console so can see results of "getValue()" button. Refs #5359.

comment:11 Changed 8 years ago by bill

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