Skip to content

Instantly share code, notes, and snippets.

View daftspunk's full-sized avatar

daft daftspunk

View GitHub Profile
@daftspunk
daftspunk / full-calendar-hot.js
Last active October 20, 2023 22:43 — forked from mplodowski/full-calendar-hot.js
Full calendar Hot Control
<script>
oc.registerControl('full-calendar', class extends oc.ControlBase {
connect() {
this.calendar = new FullCalendar.Calendar(this.element, {
headerToolbar: {
left: 'prev,next today',
center: 'title',
right: null,
},
initialView: window.innerWidth < 1000 ? 'listWeek' : 'dayGridMonth',