Skip to main content

sidebar

Description

Optional. An object of the sidebar configuration

Usage

sidebar?: { show?: boolean } | null;

Parameters

The sidebar property can be set to the following parameters:

  • an object with a show property for displaying a sidebar:
    • show - (optional) shows/hides a sidebar
  • a null value deactivates sidebar and hides a toggle button

Default config

sidebar: { show: true }
info

To set the sidebar config dynamically, you can use the setConfig() method

Example

// create Event Calendar
new eventCalendar.EventCalendar("#root", {
sidebar: { show: false }
// other configuration parameters
});