MooDatePicker 1.0

MooDatePicker is a simple date picker for MooTools.



Details

Author
Yannick Croissant
Current version
1.0
GitHub
yannickcr/MooDatePicker
Downloads
1684
Category
Utilities
Tags
Report
GitHub Issues

Releases


Dependencies

  • core/1.3: *
  • more/1.3: Locale.en-US.Date

How to use

To use MooDatePicker, you need one or more elements to use as a datepicker, like a form input. Just call the constructor with the element(s) as first parameter and the options object as second parameter.

Example

HTML:

<input name="date" type="text" data-moodatepicker />

JavaScript:

new MooDatePicker(document.getElements('input[data-moodatepicker]'), {
    onPick: function(e, date){
        this.element.set('value', date.format('%e %B %Y'));
    }
});

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