jquery fullcalendar send custom parameter and refresh calendar with JSON

前端 未结 11 1418
名媛妹妹
名媛妹妹 2020-12-23 12:14

im trying to use the jquery fullcalendar. The event data comes from the server using JSON. My page has a dropdown element and the fullcalendar div.

What i need is to

11条回答
  •  情书的邮戳
    2020-12-23 12:17

    I solved like this

             data: function() { // a function that returns an object
             return {
                     custom_param1: date_start,
                 custom_param2: date_end
                };
             },
    

    after modifying the values date_start and date_end, this function gets the new values. In my case i take the dates when the view changes

    viewRender: function(view,element){
           date_start = $.fullCalendar.formatDate(view.start,'dd/MM/yyyy');
           date_end   = $.fullCalendar.formatDate(view.end,'dd/MM/yyyy');
    },
    

提交回复
热议问题