#4596 closed defect (fixed)
Provide selected item for a ComboBox
Reported by: | wolfram | Owned by: | bill |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Dijit - Form | Version: | 0.9 |
Keywords: | ComboBox | Cc: | |
Blocked By: | Blocking: |
Description
This simple patch provides the selected item for the combobox widget, as discussed with bill on IRC. (Passing the item as second paramter to onChange() would be too complicated, since that is done in one of the base classes :-( I didn't find an easy way?)
You can now do, after one item had been selected:
var item = widget.item;
in order to retreive the data from the item you can now (or have to) do the following
var name = widget.store.getValue(item, "name"); var someValue = widget.store.getValue(item, "someAttribute");
Attachments (1)
Change History (4)
Changed 13 years ago by
Attachment: | combobox_item.patch added |
---|
comment:1 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 Changed 13 years ago by
Resolution: | → fixed |
---|
comment:3 Changed 10 years ago by
Component: | Dijit → Dijit - Form |
---|
Note: See
TracTickets for help on using
tickets.
provide the selected item