instantiate with a mvc.Model
extends goog.ui.ComponentInstance Method Summary | |
click(?Function fn, (Array.<string>|Function|null|string=) opt_className, <Any Type> opt_handler, number= opt_priority) ⇒ number same as on but assumes the event type is a click | |
getEls(string selector) ⇒ ?goog.array.ArrayLike pass in a string like "#elementId", ".className" or "tagName[ .className]" to get array of elements with the id, class or tag and class name | |
handleEvents_(string type, ?Event e) Internal use. Handles and delegates events | |
off(string uid) take off a lister by it's id | |
on(string eventName, ?Function fn, (Array.<string>|Function|null|string=) opt_className, <Any Type> opt_handler, number= opt_priority) ⇒ number delegating events. An event type is needed as well as a handling function. if a third parameter is passed then elements with that class will be listened to, otherwise the whole component. Returns a uid that can be used to end the listener with the off method | |
once(string eventName, ?Function fn, (Array.<string>|Function|null|string=) opt_className, <Any Type> opt_handler, number= opt_priority) ⇒ number same as on, but will only fire once | |
remove() remove the element and dispose |