PDA

View Full Version : event documentation



humpdi
20 Feb 2007, 10:29 AM
hey guys!

i just want to know, is there any documentation of the events which are possible at each method?
e.g.:


addListener
public function addListener(String/HTMLElement element, String eventName, Function fn, Object options)
Appends an event handler
Parameters:

* element : String/HTMLElement
The html element or id to assign the event to
* eventName : String
The type of event to append
* fn : Function
The method the event invokes
* options : Object
An object with standard EventManager options

Returns:

* void


what i want to know are the type of events which i can use for eventName??? is there any definition or documentation?

please let me know!
thanks

BernardChhun
20 Feb 2007, 12:04 PM
just type in your object reference in firebug's console and look for the events property humpdi.

like on this image:
http://i5.tinypic.com/43e323d.png

all those events will be available for a specific function attachment.

humpdi
20 Feb 2007, 12:42 PM
oh ok, i didnt have known this :/

thanks a lot man!!!

have a nice evening

tryanDLS
20 Feb 2007, 1:19 PM
The doc lists the events in each object! http://www.yui-ext.com/deploy/yui-ext/docs/. There may still be some holes, but it should get your started. If something is missing, look at the source - the convention is to have an propery called 'events' that defines them in each object.