njsoly
1/16/2013 - 10:23 AM

Include snippet for YUI's "Console"

Include snippet for YUI's "Console"

To include the source files for Console and its dependencies, first load the YUI seed file if you haven't already loaded it.

<script src="http://yui.yahooapis.com/3.8.0/build/yui/yui-min.js"></script>
Next, create a new YUI instance for your application and populate it with the modules you need by specifying them as arguments to the YUI().use() method. YUI will automatically load any dependencies required by the modules you specify.

<script>
// Create a new YUI instance and populate it with the required modules.
YUI().use('console', function (Y) {
    // Console is available and ready for use. Add implementation
    // code here.
});
</script>

//  SOURCE: <http://yuilibrary.com/yui/docs/console/>