Meio.Mask 2.0.7

MeioMask - a mootools plugin for masking text inputs.



Details

Author
Fábio M. Costa
Current version
2.0.7
GitHub
fabiomcosta/mootools-meio-mask
Downloads
33461
Category
Forms
Tags
Report
GitHub Issues

Releases


Dependencies

  • _self_/_current_:
    • Meio.Mask
    • Core/Class.Extras
    • Core/Element.Event
    • Core/Element.Style
    • More/Element.Forms

How to use

<html>
    <head>
        
        
    </head>

    <body>
        <form>
            <label for="time">Time Mask:</label>
            <input type="text" id="time" name="time" data-meiomask="fixed.time" />
        </form>

        <script>
            $$('input').each(function(input) {
                input.meiomask(input.get('data-meiomask'));
            });
        </script>
    </body>
</html>

Notice

Versions 1.x will support MooTools 1.2.x while 2.x will support 1.3.x. If you are using version 1.x, you'll need version 1.2.4 or greater of mootools-core because the plugin uses Browser.Engine.gecko engine detection, which just work on those versions.


Building

Just run make and a Build folder will be created cointaining the complete library for debugging/development and the minified file for use in production.

You can create your own customized build by editing the modules included in the built file in the build.py script.


Dependencies

The only dependency is Element.Forms, which you can grab at http://mootools.net/more/.


Run The Tests

You can easily run the tests on your default browser by using make run.


Demos

You can see it at this fiddle http://jsfiddle.net/fabiomcosta/8TFvp/751/ or inside the project at Specs/user/index.html.


Credits

Inspired by iMask http://zendold.lojcomm.com.br/imask/ and some ideas from InputMask http://cpojer.net.


License

The MIT License (http://www.opensource.org/licenses/mit-license.php)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


Discuss

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