businessHours不使用angularjs

时间:2018-02-17 20:14:39

标签: angularjs fullcalendar

营业时间没有显示在我的日历上,因为我希望它们只显示在星期一到星期五,而我的 businessHours 列表只包含星期一和星期二。

$scope.businessHours = [
    {
        start: "09:00",
        end: "19:00",
        dow: [1,2]
    }
]

$scope.uiConfig = {
    calendar:{
        header: $scope.calendarHeader,
        eventClick: $scope.alertEventOnClick,
        eventDrop: $scope.alertOnDrop,
        events: $scope.bookings,
        select: $scope.select,
        eventRender: $scope.eventRender,
        locale: 'ru',
        lang: 'ru',
        timezone: 'local',
        height: 680,
        defaultView: 'agendaWeek',
        navLinks: true,
        selectable: true,
        selectHelper: true,
        resizable: true,
        eventResize: false,
        minTime: "06:00:00",
        maxTime: "22:00:00",
        eventLimit: 6,
        unselectAuto: true,
        stick: true,
        selectConstraint: 'businessHours',
        businessHours: $scope.businessHours
    },
};

我正在使用 fullcalendar 2.7.3 AngularJS 1.6.9

0 个答案:

没有答案