X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs%2Fsymbols%2FRoo.dd.DD.html;fp=docs%2Fsymbols%2FRoo.dd.DD.html;h=afadad3629bceae97d17455f221958f11a42c752;hb=3809347c8003225f3d55f11104b3aff8191b1f32;hp=0cbcff0869b2bf88640fef0d94f73decc2fd0fab;hpb=7898cefff4301c31417a6027f5f0f024f8e5d5f7;p=roojs1 diff --git a/docs/symbols/Roo.dd.DD.html b/docs/symbols/Roo.dd.DD.html index 0cbcff0869..afadad3629 100644 --- a/docs/symbols/Roo.dd.DD.html +++ b/docs/symbols/Roo.dd.DD.html @@ -43,8 +43,9 @@
Roo.dd.DragDrop -Roo.dd.DD +Roo.util.Observable +Roo.dd.DragDrop +Roo.dd.DD
Options | + +Defined By | +|
---|---|---|
+ |
+
+
+
+ listeners : Object
+
+
+
+
+
+
+
+ list of events and functions to call for this object,
+ For example :
+
+
+
+
+ list of events and functions to call for this object,
+ For example :
|
+ + + Roo.util.Observable + + | +
Combining Options
Using the options argument, it is possible to combine different types of listeners:
A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)
el.on('click', this.onClick, this, {
single: true,
delay: 100,
forumId: 4
});
Attaching multiple handlers in 1 call
The method also allows for a single argument to be passed which is a config object containing properties
which specify multiple handlers.
el.on({
'click': {
fn: this.onClick,
scope: this,
delay: 100
},
'mouseover': {
fn: this.onMouseOver,
scope: this
},
'mouseout': {
fn: this.onMouseOut,
scope: this
}
});
Or a shorthand syntax which passes the same scope object to all handlers:
el.on({
'click': this.onClick,
'mouseover': this.onMouseOver,
'mouseout': this.onMouseOut,
scope: this
});