maddhatter / laravel-fullcalendar

Laravel FullCalendar.io Helper
627 stars 267 forks source link

Cannot click on my fullcalendar for create event in Mobile devices #126

Open azzeddine05 opened 6 years ago

azzeddine05 commented 6 years ago

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

websiteproduct commented 6 years ago

@azzeddine05 can you show your code?

azzeddine05 commented 6 years ago
     $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