I'm struggling a bit with disabling weekends and non working days in Kendo Date Picker with Angular
what I have so far is
$scope.dtpFrmOptions = {
change: startChange,
format: "dd/MMM/yyyy",
dates: $scope.holidaylist, //passing the disabledDays array to the template
month: {
// template for dates in month view
content: '# if ($.inArray(+data.date, data.dates) != -1) { #' +
'<div class="disabledDay">#= data.value #</div>' +
'# } else { #' +
'#= data.value #' +
'# } #'
},
open: function (e) {
$(".disabledDay").parent().removeClass("k-link") //removing this class makes the day unselectable
$(".disabledDay").parent().removeAttr("href") //this removes the hyperlink styling
}
}
but since JQuery selection does not work properly with angular this doesnt seem working.
Anyone have a quick solution?