Skip to content

Instantly share code, notes, and snippets.

@hodak
Last active August 29, 2015 14:26
Show Gist options
  • Save hodak/c98111505f2cff9dfd05 to your computer and use it in GitHub Desktop.
Save hodak/c98111505f2cff9dfd05 to your computer and use it in GitHub Desktop.
_callthis = function(day) {
console.log("call this: ", day);
}
_filter = function (day) {
w = day.weekday();
return w < 6 && w > 0;
}
$scope.multi = [moment(), moment().add('day', 2), moment().add('day', 5)];
$scope.optionsM = {
start: moment().add('month', -1),
months: 3,
mode: "multiple",
callback: _callthis,
filter: _filter
};
<mighty-datepicker ng-model="multi" options="optionsM"></mighty-datepicker>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment