These are chat archives for angular-ui/ui-calendar

19th
Mar 2017
salarelv
@salarelv
Mar 19 2017 12:11
Hi, I have a problem. I do not receive any click events. Tried to change fullcalendar versions but nothing.
    $scope.calendarOptions = {
        calendar: {
            editable: true,
            eventClick: $scope.alertEventOnClick,
            eventDrop: $scope.alertOnDrop,
            eventResize: $scope.alertOnResize,
            dayClick: $scope.dayClick,
            defaultView: "agendaWeek"
        }

    }

    $scope.alertEventOnClick = function(argument) {
        console.log("alertEventOnClick", argument);
    }

    $scope.alertOnDrop = function(argument) {
        console.log("alertOnDrop", argument);
    }

    $scope.alertOnResize = function(argument) {
        console.log("alertOnResize", argument);
    }

    $scope.dayClick = function(argument) {
        console.log("dayClick", argument);
    }
defaultView option worked fine. so the options are loaded
salarelv
@salarelv
Mar 19 2017 12:18
Oh...had to declare them before the options