Skip to content

Dataview integration

Create calendars inline with your notes from dataviewjs queries. Here's a basic example with a hardcoded event:

```dataviewjs
this.container.style.minHeight = "500px";
const { renderCalendar } = app.plugins.plugins["obsidian-full-calendar"];
let calendar = renderCalendar(this.container, [[{start: new Date(), id: "id", title: "Now and for an hour"}]]);
calendar.render()
```

Unfortunately, there's a bug on first render and you need to interact with the calendar by changing the week or view before it renders properly.

renderCalendar() exposes the FullCalendar API directly, so check out the event parsing documentation to see everything you can do here!