javascript - Looking for a Dijit Widget which works like a default html select -
I'm looking for a widget that works like a normal HTML complex (combo box). Until now, all the DIGIT widgets are available, there is an editable text box. I do not have a drop down box and no editable textbox
& lt; Choose Name = "Acrobox" & gt; & Lt; Option value = "1" selected = "selected" & gt; Hund & lt; / Options & gt; & Lt; Option value = "2" & gt; Katze & lt; / Options & gt; & Lt; Option value = "3" & gt; Mouse & lt; / Option & gt; & Lt; Option value = "4" & gt; Waldelf & lt; / Option & gt; & Lt; / Select & gt; It is also important for me, that the upper code is working with the widget and the widget has to use the "value" value, not the display text. I am checking this digit widgets: Cambaughton, ComboBox, FilteringSchedited, Dropdown Button.
Perhaps there is a feature that I forgot to set up.
Is there a widget that meets my needs?
I think that you dijit.form.filteringSelect:
& Lt; Select the name = "aCombobox" dozotype = "dijit.form.FilteringSelect" & gt; & Lt; Option value = "1" selected = "selected" & gt; Hund & lt; / Options & gt; & Lt; Option value = "2" & gt; Katze & lt; / Options & gt; & Lt; Option value = "3" & gt; Mouse & lt; / Option & gt; & Lt; Option value = "4" & gt; Waldelf & lt; / Option & gt; & Lt; Script Type = "Dojo / Connect" Event = "On Change" & gt; Console.log ('chose' + this.attr ('value') + '=' + this.attr ('displayValue')); & Lt; / Script & gt; & Lt; / Select & gt;
Hope it helps.
If you are feeling adventurous, you can try dijit.form.DropDownSelect. It's just 7/21 added on the trunk.
Comments
Post a Comment