#6379 closed enhancement (fixed)
Create a _FormSelectWidget shared class
Reported by: | Nathan Toone | Owned by: | Nathan Toone |
---|---|---|---|
Priority: | low | Milestone: | 1.2 |
Component: | Dijit - Form | Version: | 1.1.0 |
Keywords: | Cc: | bill, wolfram | |
Blocked By: | Blocking: |
Description
As discussed on IRC 1-Apr-08
similar to how _FormValueWidget wraps an html input element, it would be nice to have a _FormSelectWidget which would basically wrap an html select element. It would probably be used as the core for ComboBox?, FilteringSelect?, and MultiSelect? - as well as DropDownSelect? and CheckedMultiSelect? (in dojox.form).
This class could add functions, such as "addOption", "removeOption", "setSelectedValue", etc - that are helpful for working with select-based widgets
It would also provide for specifying "mutliple=true" and then setting multiple values (instead of a single value).
It might also add support for having as a backend some kind of store to keep track of the options.
This ticket is just a place to add comments/thoughts and to track the status (and any patches) moving towards this idea.
Attachments (1)
Change History (13)
comment:1 Changed 13 years ago by
Milestone: | → 1.2 |
---|
Changed 13 years ago by
Attachment: | FormSelectWidget-6379-2008-07-04_1656.diff added |
---|
comment:2 Changed 13 years ago by
Status: | new → assigned |
---|
I figured this would be easier (and probably better, initially) to fix in dojox.form - where there are the select widgets that need it. The main reason for this is due to performance issues with the CheckedMultiSelect?.
This is just an initial attempt at creating a shared FormSelectWidget?.
The patch, however, requires that the patch to #6365 be applied as well...in order to avoid dependencies between patches, this patch contains its own copy of _HasDropDown.js which it uses instead. Once we have both patches merged in, we can fix this.
After working on this a bit, I'm not too sure that there is much that can be shared between it and ComboBox/FilteringSelect?. We might just want to have it continue living in dojox.form for now.
comment:3 Changed 13 years ago by
comment:4 Changed 13 years ago by
comment:5 Changed 13 years ago by
Milestone: | 1.2 → 1.3 |
---|
comment:6 Changed 13 years ago by
Owner: | changed from nathan to Nathan Toone |
---|---|
Status: | assigned → new |
comment:7 Changed 13 years ago by
Reporter: | changed from nathan to Nathan Toone |
---|
comment:9 Changed 12 years ago by
Milestone: | 1.3 → future |
---|
comment:10 Changed 12 years ago by
Milestone: | future → 1.4 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
This has actually existed since the 1.2 timeframe - as dojox.form._FormSelectWidget
comment:11 Changed 12 years ago by
Milestone: | 1.4 → 1.2 |
---|
comment:12 Changed 10 years ago by
Component: | Dijit → Dijit - Form |
---|
Initial stab at FormSelectWidget? living in dojox.form. This includes its own copy of _HasDropdown.