# inputEx - Using the YUI loader

## How to use the YUI loader

InputEx modules and dependencies are defined in the inputex-loader.js file. See the YUI loader page for more informations.

var loader = new YAHOO.util.YUILoader({ loadOptional: true, //base: "../lib/yui/", // remove the comment if you want to load YUI locally require: ["inputex-datetimefield"], onSuccess: function() { new inputEx.DateTimeField( { parentEl: 'container1', name: "date", value: new Date() }); } }); /** * Important: this functions declares all inputEx Modules to YUI */ YAHOO.addInputExModules(loader, '../'); loader.insert();