user7533640
user7533640

Reputation:

How to display fullCalendar default view to day wise from month wise?

I'm using this calendar I want to display the calendar in day wise from month wise, by default it shows a monthly.

I am working on laravel 5.2.

Please let me know how to do it?

Upvotes: 1

Views: 1418

Answers (1)

Douwe de Haan
Douwe de Haan

Reputation: 6646

After you've added the events to the calendar, you can set options for the calendar:

$calendar = Calendar::addEvents($events)->setOptions([
    'defaultView' => 'agendaDay'
]);

All the types of defaultViews are found here.

Upvotes: 3

Related Questions