Currently, I'm utilizing bootstrap 3 within a meteor project and I have a requirement to deactivate most of the days of the week in a datetime picker.
Although the other options I've configured appear to be functioning correctly, the daysOfWeekDisabled functionality isn't disabling any days.
Upon researching, I came across a solution on Limit bootstrap-datepicker to weekdays only? that implies it should work (and it does in the twiddle), however, I'm unable to make it work with my code.
Here are the options I'm implementing:
Template.requestLayout.rendered = function(){
$('.datetimepicker').datetimepicker({
pickTime: false,
startDate: moment().day(12),
defaultDate: moment().day(12),
daysOfWeekDisabled: [0,1,2,3,6],
autoclose: true
});
}
Any thoughts on why it might not be functioning as expected?