Class Roo.addBehaviors
Package: | Roo |
Defined In: |
Roo.js.
|
Class: | addBehaviors |
Applies event listeners to elements by selectors when the document is ready.
The event name is specified with an @ suffix.
Roo.addBehaviors({
// add a listener for click on all anchors in element with id foo
'foo aclick' : function(e, t){
// do something
},
// add the same listener to multiple selectors (separated by comma BEFORE the @)
'foo a, bar span.some-classmouseover' : function(){
// do something
}
});
Config Options - Has None
Public Properties - Has None
Public Methods - Has None