O'Reilly logo

YUI 2.8 Learning the Library by Dan Wellman, Daniel Barreiro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Custom events

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required