Yahoo! UI Library

plugin  3.0.0pr2

Yahoo! UI Library > plugin > Plugin
Search:
 
Filters

Class Plugin - extends Base

Plugin provides a base class for all Plugin classes.

Properties

Plugin.NAME - static {String}

Static property provides a string to identify the class.

Plugin.NS - static {String}

Static property provides the namespace the plugin will be registered under.

Properties inherited from Attribute:

Properties inherited from Base:

Methods

destructor

void destructor ( )
desctructor lifecycle implementation. Removes any listeners attached by the Plugin and restores and over-ridden methods.
Returns: void

doAfter

doAfter ( sFn , fn , context )
Listens for events and methods fired by the owner widget. The handler is called after the event handler or method is called.
Parameters:
sFn <object> The event of method to listen for.
fn <object> The handler function to call when the listener fires.
context <object> An optional context to call the handler with. Default context is the plugin instance.

doBefore

doBefore ( sFn , fn , context )
Listens for events and methods fired by the owner widget. The handler is called before the event handler or method is called.
Parameters:
sFn <object> The event of method to listen for.
fn <object> The handler function to call when the listener fires.
context <object> An optional context to call the handler with. Default context is the plugin instance.

initializer

void initializer ( config )
Initializer lifecycle implementation.
Parameters:
config <Object> Configuration object literal for the plugin
Returns: void

Events inherited from Base:

Configuration attributes inherited from Base:


Copyright © 2008 Yahoo! Inc. All rights reserved.