Event: Examples
The YUI Event Utility supports DOM events and Custom Events.
- Simple DOM Events: Use the Event Utility to attach simple DOM event handlers.
- Using 'available', 'contentready', and 'domready': Event Utility gives you control over when you execute your scripts. In addition to the window's
loadevent, Event Utility lets you know when an element is available, when its children are available, and when the page's full DOM is available. - Using Custom Events: Use the Event Utility to create Custom Events that are bubbleable, preventable, cancelable and much more.
- Using the 'focus' and 'blur' custom events: Using the ClassNameManager Utility and the Event Utility's
focusandblurcustom events to skin checkboxes.
Other YUI Examples That Make Use of the Event
- Change Events (included with examples for the Attribute)
- Custom Getters, Setters and Validators (included with examples for the Attribute)
- Extending the base widget class (included with examples for the Widget)
