Ember component that wraps jquery-ui datepicker. By default, binds the value
property of the component to the datepicker's value.
After you've included the script with a script tag or your favorite module system, you can access the class in JavaScript like so (assuming you're using globals):
var MySubclass = jqui.DatepickerComponent.extend({
});
jqui.DatepickerComponent
provides two hooks to override its binding behavior.
You can define an onSelect
action to stop bindings from happening. You
can also define an onClose
action to respond when the datepicker is closed.
var MySubclassComponent = jqui.DatepickerComponent.extend({
actions: {
onClose: function() {
// Doin' stuff
},
onSelect: function(dateText, jqUIElement) {
// Doin' more stuff
}
}
});
After cloning this repo, install dependencies:
$ npm install
$ bower install
Fire up the grunt watcher:
$ grunt
Then in a different tab run your tests with testem:
$ testem
MIT License
(c) 2013 Instructure, Inc