Mooniform is the porting of the famous jquery plugin uniform (by pixelmatrix) to mootools.
To use it you will simply need to follow the easy instructions below
First of all you need to include the following html tags:
<script src="./Source/mooniform.js" type="text/javascript"></script> <link href="./Source/css/mooniform.default.css" rel="stylesheet">
Then you can simply use it in this way, for example:
new Mooniform($$('input[type="checkbox"]'));
Theming is done with CSS files and images (see inside /images/ folder).
var mooniform_instance = new Mooniform([elements, options]);
All the options of the Mooniform (most of all are about css classes):
var elementsToStyle = $$('select, input[type="checkbox"], input[type="radio"], input[type="file"]'), mooniformInstance = new Mooniform(elementsToStyle); //style new elements (loaded by ajax i.e.) mooniformInstance.lookup(elementsToStyle); //if you want to reset a form myForm.reset(); mooniformInstance.update();
A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.
Found a bug in this plugin? Please report it this repository's Github Issues.
blog comments powered by Disqus