YUI Handbook

YUI Handbook

Note : AUI (Alloy User Interface) is a wrapper to YUI (Yahoo User Interface), so all JavaScript syntax will remain same.

Lets explore some features of YUI.

1. Loading Libraries on demand
In YUI you can load the libraries that are required for your Website.

ex :

2. Node Selector
As of Jquery YUI comes with a powerful node selector feature. Lets see few examples.

Syntax.

Note : If the element is not preset if DOM then Y.one will give NullPointer Error, but Y.all will not show any error. So while using Y.one you can wrap it with a if block for safety.

Few Selector Examples

Few more Examples :

Ref

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.