I have a drop down box that I need to be empty until the end user chooses 1 of the options, when ever I try it always has a value
Code
xtype : "combo",
name : "sb_repo",
fieldLabel : _("Repository"),
queryMode : "local",
store : Ext.create("Ext.data.ArrayStore", {
fields : [
"value",
"text"
],
data : [
[ 0, _("Sickbeard - Main") ],
[ 1, _("Sickbeard - Torrents") ]
]
}),
displayField : "text",
valueField : "value",
allowBlank : false,
editable : false,
triggerAction : "all",
value : 0,
plugins : [{
ptype : "fieldinfo",
text : _("The repository you want to use. If changing from a current repository, setting will be wiped.")
}]
Alles anzeigen
I thought about just removing 'value : 0,' but does not work, once it has an option selected I would want it to show only to 2 options available.
Never mind, found a solution.