Closed jacobmc closed 8 months ago
Howdy! Try using views="dayGridMonth, dayGridWeek"
or views="dayGridMonth, timeGridWeek"
I agree the initial_view
option seems unnecessarily restrictive at this moment. I'll work on making that more permissive.
(Currently in initial view is restricted to: dayGridMonth, listDay, listWeek, listMonth, listYear, listCustom)
In the meantime, you can modify helpers.js line 32-36 to look like:
// let initialView = "dayGridMonth";
// if (allowedViews.includes(settings["initial_view"])) {
// initialView = settings["initial_view"];
// }
let initialView = settings["initial_view"];
That should allow you to set initial_view="timeGridWeek"
Actually, there is!
Just use the shortcode attribute initial_view, setting it to a view defined in the views attribute.
The line:
defines the views available. Any other available at Full Calendar can be used too, but I can't say for sure the CSS for them are ok or not. This will need some more testing to incllude it in the allowed views.
Hope this helps in anyway!
Hello,
support of "dayGridWeek" or "timeGridWeek" in initial_view would be really great.
Hey there! I would love to use this plugin but my client really wants a week view. It would also be great if you could set the default view manually.