Server IP : 150.95.80.236 / Your IP : 3.128.255.174 Web Server : Apache System : Linux host-150-95-80-236 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : social-telecare ( 10000) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/pcu.in.th/uat.pcu.in.th/demo15/src/js/custom/documentation/general/fullcalendar/ |
Upload File : |
"use strict"; // Class definition var KTGeneralFullCalendarDragDemos = function () { // Private functions var exampleDrag = function () { // Initialize the external events -- for more info please visit the official site: https://fullcalendar.io/demos var containerEl = document.getElementById('kt_docs_fullcalendar_events_list'); new FullCalendar.Draggable(containerEl, { itemSelector: '.fc-event', eventData: function(eventEl) { return { title: eventEl.innerText.trim() } } }); // initialize the calendar -- for more info please visit the official site: https://fullcalendar.io/demos var calendarEl = document.getElementById('kt_docs_fullcalendar_drag'); var calendar = new FullCalendar.Calendar(calendarEl, { headerToolbar: { left: 'prev,next today', center: 'title', right: 'dayGridMonth,timeGridWeek,timeGridDay,listWeek' }, editable: true, droppable: true, // this allows things to be dropped onto the calendar drop: function(arg) { // is the "remove after drop" checkbox checked? if (document.getElementById('drop-remove').checked) { // if so, remove the element from the "Draggable Events" list arg.draggedEl.parentNode.removeChild(arg.draggedEl); } } }); calendar.render(); } return { // Public Functions init: function () { exampleDrag(); } }; }(); // On document ready KTUtil.onDOMContentLoaded(function () { KTGeneralFullCalendarDragDemos.init(); });