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";


fullcalendar.defineThemeSystem('mst', FullCalendarMSTTheme);

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

        header: {
            left: 'prev,next today',
            center: 'title',
            right: 'month,agendaWeek,agendaDay listYear'