Ticket #6379 (new enhancement)

Opened 8 months ago

Last modified 2 weeks ago

Create a _FormSelectWidget shared class

Reported by: toonetown Owned by: toonetown
Priority: low Milestone: future
Component: Dijit Version: 1.1.0
Severity: normal Keywords:
Cc: bill, wolfram

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

FormSelectWidget-6379-2008-07-04_1656.diff (47.4 kB) - added by nathan 8 months ago.
Initial stab at FormSelectWidget? living in dojox.form. This includes its own copy of _HasDropdown.

Change History

Changed 8 months ago by nathan

  • milestone set to 1.2

Changed 8 months ago by nathan

Initial stab at FormSelectWidget? living in dojox.form. This includes its own copy of _HasDropdown.

Changed 8 months ago by nathan

  • status changed from new to 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.

Changed 7 months ago by toonetown

(In [13533]) add in support for setting disabled items. Currently this is only implemented in the dropdown widget - due to the way that checkedmultiselect disables itself. refs #6379

Changed 7 months ago by toonetown

(In [13549]) added in hook for removing options in a subclass, and fixed issues with getting option 0. refs #6379

Changed 6 months ago by nathan

  • milestone changed from 1.2 to 1.3

Changed 5 months ago by toonetown

  • status changed from assigned to new
  • owner changed from nathan to toonetown

Changed 5 months ago by toonetown

  • reporter changed from nathan to toonetown

Changed 4 months ago by toonetown

(In [14817]) Refs #6379 - should inherit from formvaluewidget

Changed 2 weeks ago by bill

  • milestone changed from 1.3 to future
Note: See TracTickets for help on using tickets.