{
type: "datepicker",
key: "start",
templateOptions: {
theme: "custom",
placeholder: "Start date",
minDate: minDate, // instance of Date
maxDate: maxDate, // instance of Date
filterDate: function(date) {
// only weekends
var day = date.getDay();
return day === 0 || day === 6;
}
}
}
The date input placeholder value
Min date of choice
Max date of choice
Function expecting a date and returning a boolean whether it can be selected or not.