How to use the fullcalendar.defineThemeSystem function in fullcalendar

To help you get started, we’ve selected a few fullcalendar examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github meine-stadt-transparent / meine-stadt-transparent / mainapp / assets / js / calendar.js View on Github external
// noinspection ES6UnusedImports
import style from '../css/calendar.scss';
import moment from "moment";

import * as fullcalendar from "fullcalendar";
import {FullCalendarMSTTheme} from "./FullCalendarMSTTheme";

require("fullcalendar/dist/locale/de");

fullcalendar.defineThemeSystem('mst', FullCalendarMSTTheme);

$(function () {
    let $calendar = $('#calendar'),
        language = $('html').attr('lang'),
        defaultView = $calendar.data('default-view'),
        defaultDate = moment($calendar.data('default-date'), "YYYY-MM-DD"),
        initView = $calendar.data('init-view'),
        initDate = $calendar.data('init-date'),
        dataSrc = $calendar.data('src');

    $calendar.fullCalendar({
        header: {
            left: 'prev,next today',
            center: 'title',
            right: 'month,agendaWeek,agendaDay listYear'
        },