You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
846 B
36 lines
846 B
var UIDatepaginator = function () {
|
|
|
|
return {
|
|
|
|
//main function to initiate the module
|
|
init: function () {
|
|
|
|
//sample #1
|
|
$('#datepaginator_sample_1').datepaginator();
|
|
|
|
//sample #2
|
|
$('#datepaginator_sample_2').datepaginator({
|
|
size: "large"
|
|
});
|
|
|
|
//sample #3
|
|
$('#datepaginator_sample_3').datepaginator({
|
|
size: "small"
|
|
});
|
|
|
|
//sample #3
|
|
$('#datepaginator_sample_4').datepaginator({
|
|
onSelectedDateChanged: function(event, date) {
|
|
alert("Selected date: " + moment(date).format("Do, MMM YYYY"));
|
|
}
|
|
});
|
|
|
|
} // end init
|
|
|
|
};
|
|
|
|
}();
|
|
|
|
jQuery(document).ready(function() {
|
|
UIDatepaginator.init();
|
|
});
|