Roo.form.ComboBoxArray = function(config)
{
this.addEvents({
+ /**
+ * @event beforeremove
+ * Fires before remove the value from the list
+ * @param {Roo.form.ComboBoxArray} _self This combo box array
+ * @param {Roo.form.ComboBoxArray.Item} item removed item
+ */
+ 'beforeremove' : true,
/**
* @event remove
* Fires when remove the value from the list
// add to list
}, this);
- this.combo.on('specialkey',function(cb, rec, ix){
- alert('here');
- })
},
remove : function()
{
+ if(this.cb.disabled){
+ return;
+ }
+
this.cb.items.remove(this);
this.el.child('img').un('click', this.remove, this);
this.el.remove();