Disable and activate FullCalendar

大兔子大兔子 提交于 2019-12-11 15:29:07

问题


I want to initially set the editable, selectable, droppable and events to false (or not), when the user clicks a button, retrieves the data successfully, then set them to true. I'm a newbie and I don't know how to handle it with js

var calendar = $('#calendar').fullCalendar({
        header: {
            left: 'prev,next today',
            center: 'title',
            right: 'agendaWeek,agendaDay'
        },
        height: function () {
            return $(window).height() * 0.7;
        },
        allDaySlot: false,
        defaultView: 'agendaWeek',

        //Here is the part I want to add after receiving user submitted data
        editable: true,
        selectable: true,
        droppable: true,
        events: "...",

来源:https://stackoverflow.com/questions/57712687/disable-and-activate-fullcalendar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!