Opened 16 years ago
Closed 15 years ago
#1673 closed enhancement (fixed)
Select box: Set selected by value, index or title
Reported by: | guest | Owned by: | haysmark |
---|---|---|---|
Priority: | high | Milestone: | 0.9 |
Component: | Widgets | Version: | 0.3 |
Keywords: | select, index, value, title, setSelected | Cc: | |
Blocked By: | Blocking: |
Description
I'm missing a feature where you can set the selected option in a dojo.widget.Select box by using an index, a value or a title.
This feature request is thus for implementing three functions, e.g:
dojo.widget.Select.setSelectedByIndex(index) dojo.widget.Select.setSelectedByValue(value) dojo.widget.Select.setSelectedByTitle(title)
I went to the official Dojo IRC channel on freenode and was asked to put this in the bug tracker as a feature addition for 0.4.1. That's why I've set a Milestone despite not being a Dojo commiter.
Change History (9)
comment:1 Changed 16 years ago by
Milestone: | 0.4.1 → 0.5 |
---|
comment:2 Changed 16 years ago by
Actually, I just asked for setSelectedByValue() on the IRC channel and it was a guy named slightlyoff IIRC that mentioned I should include index and title in the ticket.
comment:3 Changed 15 years ago by
Owner: | changed from bill to Douglas Hays |
---|
comment:4 Changed 15 years ago by
For Select, you now use:
setValue(hiddenvalue)
or:
setTextValue(visiblelabel)
depending on what you have available.
comment:5 Changed 15 years ago by
Owner: | changed from Douglas Hays to [email protected]… |
---|
comment:6 Changed 15 years ago by
Owner: | changed from [email protected]… to haysmark |
---|
comment:7 Changed 15 years ago by
Cc: | [email protected]… added |
---|
comment:8 Changed 15 years ago by
Cc: | [email protected]… removed |
---|
comment:9 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Hmm, this is kind of a big feature
Moving to 0.5 for now.