Events are a very effective way to respond to a rich user interface; any action our visitors do on a window fires an event we can respond to. If we are about to make a new type of control, such as a better button, a calendar, or an editor—a better mousetrap, we would like to have the same ability to signal when something interesting happens. Most YUI components have an extensive number of events.
The extra functionality provided by the library brings with it a whole host of fresh events that allow us to intercept interactions made between our visitors and the components of the library.
The Animation Utility features three custom events that define important moments during an animation such as when the animation begins (onStart
), when it ends (onComplete
), and during every frame of the animation (onTween
).
The DataSource Utility provides a series of both interaction and execution events that mark the occurrence of things like a request being made of the live data source, or a...