Open 'Calendar' Page/Collection Note to Specific Date/Range #7059
Replies: 2 comments 10 replies
-
Yes, you can programmatically jump the Trilium Calendar view to a specific date or range using the FullCalendar API, which Trilium's CalendarView component exposes via a React ref. To do this, use For example, when a user selects a note for "2025/02/01" with
This approach is supported by the FullCalendar API used in Trilium, even though the UI doesn't expose this directly for external triggers. You can integrate this logic wherever you handle note selection events in your code. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
it would be great if fullcalendar could be made available in the frontend API |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to force the Calendar to a specific range... Year/Month/Week/Day/etc., depending on the Calendar type and if the selected page/note is a "Day"/"Month"/"Year" note? e.g. I click the Date note "2025/02/01" which is of '#calendar:view=timeGridWeek'. This should load that week on Feb 1st, 2025.
I'm currently able to successfully detect if it's a Day/Month/Year note, as well as correctly calculate the # of days from the current day. Now I'd like to (hopefully) call a method to Jump the Calendar view to the range of that selected Day/Month note (obviously IF its not already within the range).
Beta Was this translation helpful? Give feedback.
All reactions