-
I would like to mount your fantastic piece of software to a basic Svelte project, and build a navbar to it. However, your calendar has an inbuilt programmatically generated toolbar. I haven't been able to figure out how to include prev/today/next buttons in my own navbar, as well as other functionalities, such as the view changing buttons, and the "title" (the span of time in the current view). Could you please give me some pointers on how this could be accomplished? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
To navigate the calendar programmatically, you should update the date option using setOption, i.e. |
Beta Was this translation helpful? Give feedback.
To navigate the calendar programmatically, you should update the date option using setOption, i.e.
calendar.setOption('date', newDate)
. Accordingly, to switch the view you need to usesetOption('view', newViewName)
. And the current title value can be obtained from the View object using getView.