How to implement external event drag and drop in the Fullcalendar View module?

Created on 5 February 2024, 11 months ago
Updated 10 February 2024, 10 months ago

i am using fullcalendar_view module and not able to drop external event into the calendar

(function ($, Drupal, drupalSettings) {
  Drupal.behaviors.clipboard = {
    attach: function (context, settings) {
      $('.appt-draggable').once('appt-clipboard').each(function() {
        var eventData = $(this).data();
        var eventObject = {
          title : eventData.title,
          eid : eventData.nid
        };
        $(this).data('eventObject', eventObject);
        $(this).draggable({
          zIndex: 999,
          revert: true, // will cause the event to go back to its                                                                                                       
          revertDuration: 0  //  original position after the drag                                                                                                       
        });
      });
      $('.js-drupal-fullcalendar').each(function() {
          let calendarEl = this;
          var calendar = new FullCalendar.Calendar(calendarEl, {
            plugins: ['interaction'],
            droppable: true
          });
          calendar.render();
          console.log(calendar);
      });
    }
  };
})(jQuery, Drupal, drupalSettings);
๐Ÿ’ฌ Support request
Status

Closed: won't fix

Version

5.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia ali rizvi

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024