在Angular kendo日期选择器中禁用日期

时间:2015-08-31 16:53:18

标签: angularjs kendo-ui kendo-datepicker

我在使用Angular的剑道日期选择器中禁用周末和非工作日方面有点挣扎

到目前为止我所拥有的是

 $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
        }
    }

但由于JQuery选择无法正常使用角度,这似乎无法正常工作。

任何人都有快速解决方案吗?

0 个答案:

没有答案
相关问题