laravel-fullcalendar icon indicating copy to clipboard operation
laravel-fullcalendar copied to clipboard

Cannot click on my fullcalendar for create event in Mobile devices

Open azzeddine05 opened this issue 6 years ago • 2 comments

Hi, my fullcalendar is work in pc but event click and select dont work in mobile thanks you for any help

azzeddine05 avatar Sep 16 '18 13:09 azzeddine05

@azzeddine05 can you show your code?

websiteproduct avatar Sep 16 '18 15:09 websiteproduct

     $calendar_details = Calendar::addEvents($event_list, [ //set custom color fo this event
            //'color' => '#800',

        ])->setOptions([ //set fullcalendar options
            'firstDay' => 1,
            'selectable' => true,
            'defaultView' => 'agendaWeek',
            'slotLabelFormat' => 'HH:mm',
            'minTime' => '08:00:00',
            'maxTime' => '20:00:00',
            'slotDuration' => '00:30:01',
            'locale' => 'fr',
  ])->setCallbacks([ //set fullcalendar callback options (will not be JSON encoded)
            'select' => 'function(start, end, jsEvent, view) {
            if (view.name === "agendaWeek")
            {
                var allDay = !start.hasTime() && !end.hasTime();
                var dstart = moment(start).format("YYYY-MM-DD");
                var codeCommercial = $("#codeCommerc").val();
               alert("week"
         }
       }',
        ]);

thanks for you

azzeddine05 avatar Sep 16 '18 17:09 azzeddine05