Kiran Rai Chamling
Kiran Rai Chamling

Reputation: 498

How to display fullCalendar default view from monday?

I want to display the full calendar view from Monday till Sunday, by default it shows from Sunday till Saturday.

I am working on laravel 5.2.

Please let me know how to do it?

Upvotes: 0

Views: 622

Answers (1)

Dimitri Mostrey
Dimitri Mostrey

Reputation: 2340

In the controller, try to add the option

$calendar = $calendar::setOptions(['firstDay' => 1,]);

Edit: typo in setOptions: 'firstDay' is part of many options, forgot to close the array...

final: Kindly select the answer as correct.

You are lucky I understood your question. You make use of the https://github.com/maddhatter/laravel-fullcalendar package to help you to generate the http://fullcalendar.io javascript module. I've struggled with the same. The reason: an avalanche of options.

Upvotes: 3

Related Questions