Full Calendar setOptions() Additional Parameters

Posted 5 months ago by kshitizmittal

How to implement additional parameters in setOptions() like, I want to disable sunday greyout etc.

I want full list of additional parameters.

Sample Code in Controller :-

public function index()
    {
        $activities = Engagementactivity::where(["activity_status"=>"on"])->get();
        $events = [];
        foreach ($activities as $key => $activity) {
            $events[] = Calendar::event(
                (@$activity->activity_name ? @$activity->activity_name : 'N/A'),
                true,
                new \DateTime($activity->activity_start_date),
                new \DateTime($activity->activity_start_date),
                // 1,
                [
                    // 'url' => url('/home'),
                ],
            );
        }
        $calendar = Calendar::addEvents($events, [ //set custom color fo this event
            'color' => '#61ABE1',
        ])->setOptions([ //set fullcalendar options
            'firstDay' => 1
        ]);
        return view('admin.calender',compact('calendar'));
    }

Like here I have used firstDay parameter in setOptions().

Please sign in or create an account to participate in this conversation.