• Resolved harrihoelle

    (@harrihoelle)


    Hi,
    I’m trying to set up the widget of Private Google Calendars as a widget in the sidebar. Calling the page I get a nice dayGridMonth view. I can put in a button for listWeek, but this is not what I want really.
    I want the widget to start in listWeek view by default, displaying a list of events when the site is called.
    How can this be achieved?
    Thanks for your help in advance.

    • This topic was modified 4 years, 7 months ago by harrihoelle. Reason: forgot topic tags

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author michielve

    (@michielve)

    Hi,

    You have to set the “defaultView” as well.

    So for example you can place this in the “FullCalendar JSON config” text area of the widget:

    {
      "header": {
        "left": "",
        "center": "title",
        "right": "today prev,next"
      },
      "defaultView": "listWeek"
    }

    Or if you still want the user to be able to switch between different views you can do:

    {
      "header": {
        "left": "dayGridMonth,timeGridWeek,listWeek",
        "center": "title",
        "right": "today prev,next"
      },
      "defaultView": "listWeek"
    }

    See the FullCalendar website for all available properties you can use.

    Best wishes,
    Michiel

    Thread Starter harrihoelle

    (@harrihoelle)

    Hi,
    I thought it must be something along these lines…
    But you have to be sure where to put all these commas and inverted commas.

    Thanks for helping so fast, will try it soon.

    Best wishes,
    Harald

    Thread Starter harrihoelle

    (@harrihoelle)

    Hi Michiel,
    this did it!
    Thanks a lot and best wishes,
    Harald

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘defaultView: listWeek in Widget’ is closed to new replies.