Year View in Fullcalendar jquery plugin

后端 未结 3 1819
陌清茗
陌清茗 2020-12-07 18:00

I started a YearView in fullcalendar (derived from the basic \'MonthView\', needed to display longer events such as school holidays), and I could use a hand if anyone is alr

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-07 18:26

    Alternatively if you need year view something like this:

    You can install it via npm https://www.npmjs.com/package/fullcalendar-year-view

    Steps:

    cd yourFileLocation
    npm init (press enter)
    npm i fullcalendar-year-view
    

    To get lib files go to yourFileLocation/node_modules/fullcalendar-year-view/dist/

    Or alternatively, you can use browserify for your page

    Include css & js lib files to your page

    Finally use 'year' view

    $('#calendar').fullCalendar({
      header: {
        left: 'prev,next today',
        center: 'title',
        right: 'year,month,basicWeek,basicDay'
      }
      ....
    

提交回复
热议问题