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

changing single event color

Open Mw1995 opened this issue 7 years ago • 1 comments

can i edit the color of the event not all calendar events ???

Mw1995 avatar Jun 08 '17 11:06 Mw1995

Yes, you need to send the background color in the 6 parameter, inside the array, like this:

$event = \Calendar::event(
                $my_event -> title, //Event title
                $my_event -> all_day, //Full day event
                $my_event -> start, //Start time
                $my_event -> end, //End time
                $my_event -> id, //Event ID
                [
                    'backgroundColor' => $back_color,
                    'textColor' => $text_color,
                    'description' => $my_event -> message
                ]
            );

cesarureno avatar Jun 12 '17 21:06 cesarureno