*/
success : false,
/**
- * @cfg {boolean} valid
+ * @cfg {boolean|String} valid true/false or string (add/sub/ok/nodrop)
* if the drop point is valid for over/enter..
*/
valid : false,
if(this.overClass){
this.el.addClass(this.overClass);
}
- return this.valid ? this.dropAllowed : this.dropNotAllowed;
+ return typeof(this.valid) == 'string' ? 'x-dd-drop-' + this.valid : (
+ this.valid ? this.dropAllowed : this.dropNotAllowed
+ );
},
/**
notifyOver : function(dd, e, data){
this.valid = true;
this.fireEvent('over', this, dd, e, data);
- return this.valid ? this.dropAllowed : this.dropNotAllowed;
+ return typeof(this.valid) == 'string' ? 'x-dd-drop-' + this.valid : (
+ this.valid ? this.dropAllowed : this.dropNotAllowed
+ );
},
/**