单击"全日历"弹出窗口中的按钮不起作用



我在FullCalendar中的事件弹出窗口上创建了一个单击按钮来执行一些xyz操作。但是创建的功能("详细信息检查"(不起作用。如果有人可以指导我解决下面提到的代码片段中的问题,那将很有帮助?

完整日历弹出窗口

$scope.uiConfig = { 
    calendar: {
        name : 'calender1',
        height: 600,
        editable: true,
        header: {
            left: 'title',
            center: '',
            right: 'today prev,next'
        },
        eventClick: $scope.alertOnEventClick,
        eventMouseover: function () { $scope.checked = true; },
        eventMouseout: function () { $scope.checked = false; },
        eventDrop: $scope.alertOnDrop,
        //eventResize: $scope.alertOnResize,
        eventRender: function (event, element) {
            var chk = $(event.target).css('display', 'block');
            element.popover({
                trigger: "click",
                html: true,
                animation: true,
                content: '<div ng-show="checked"><button class="btn btn-danger pop" ng-click="detailcheck(event)">abc</button><b>Inicio</b>:' + event.start + "<b>Fin</b>:" + event.end + "</div>",
            })
        },
        firstDay: 1,
        viewRender : function (view, element) {
            $scope.calendarrangestart = view.start._d;
            $scope.calendarrangeend = view.end._d;  
        }
    }
};
$scope.eventSources = [$scope.events];
$scope.detailcheck = function (event) {
    console.log("hi");
}

###Fixed 问题,不是一个角度解决方案,但应用了一点jquery解决了我的问题###

 {   calendar: {
    name : 'calender1',
    height: 600,
    editable: true,
    header: {
        left: 'title',
        center: '',
        right: 'today prev,next'
    },
    eventClick: $scope.alertOnEventClick,
    eventMouseover: function () { $scope.checked = true; },
    eventMouseout: function () { $scope.checked = false; },
    eventDrop: $scope.alertOnDrop,
    //eventResize: $scope.alertOnResize,
    eventRender: function (event, element) {
        var chk = $(event.target).css('display', 'block');
        element.popover({
            trigger: "click",
            html: true,
            animation: true,
            content: '<div ng-show="checked"><button id="object_" class="btn btn-danger pop">abc</button><b>Inicio</b>:' + event.start + "<b>Fin</b>:" + event.end + "</div>",
        });
            $('.fc-content-skeleton').on('click', '#object_', function () {
                $scope.scop = true;
                console.log("abcs");
                console.log($scope.scop);
            });
    },
    firstDay: 1,
    viewRender : function (view, element) {
        $scope.calendarrangestart = view.start._d;
        $scope.calendarrangeend = view.end._d;  
    }
}};
$scope.eventSources = [$scope.events];

相关内容

  • 没有找到相关文章

最新更新