Quarter and Year View

Besides the single month view, the calendar can be configured to render multiple months or a year. Controlled through the calendar.type and calendar.size properties of the view option.

Depending on the height of the parent container the calendar is rendered in, the header that can be used for navigation is sticky at the top while the months are vertically scrollable.

Download and try example

Demo

Loading the live demo

Preview in full screen

Show three months or a full year in the event calendar — switch between quarter and year views to give users a planning-scale event overview.

Code

mobiscroll.setOptions({
  locale:  ,
  theme: ' ',
  themeVariant: ' '
});

$(function () {
  var calendar = $('#quarter-year-view')
    .mobiscroll()
    .eventcalendar({
      view: {
        calendar: { type: 'month', size: 3 },
      },
      height: 'auto',
      renderHeader: function () {
        return (
          '<div mbsc-calendar-nav></div>' +
          '<div class="quarter-year-header-picker">' +
          '<label>Quarter<input mbsc-segmented type="radio" name="view" value="quarter" class="md-quarter-year-change" checked></label>' +
          '<label>Year<input mbsc-segmented type="radio" name="view" value="year" class="md-quarter-year-change"></label>' +
          '</div>' +
          '<div mbsc-calendar-prev class="quarter-year-header-prev"></div>' +
          '<div mbsc-calendar-today class="quarter-year-header-today"></div>' +
          '<div mbsc-calendar-next class="quarter-year-header-next"></div>'
        );
      },
    })
    .mobiscroll('getInst');

  $.getJSON(
    'https://trial.mobiscroll.com/events/?vers=5&callback=?',
    function (events) {
      calendar.setEvents(events);
    },
    'jsonp',
  );

  $('.md-quarter-year-change').change(function (ev) {
    switch (ev.target.value) {
      case 'quarter':
        calendar.setOptions({
          view: {
            calendar: { type: 'month', size: 3 },
          },
          height: 'auto',
        });
        break;
      case 'year':
        calendar.setOptions({
          view: {
            calendar: { type: 'year' },
          },
          height: '100%',
        });
        break;
    }
  });
});
  

Duplicate Session

You have signed in on a different machine. To keep everything in sync, you have been signed out of this session.

If you need to invite team members, manage seats and accounts you can do it from the licenses page.

Duplicate Session

We noticed you are logged in on a different machine and have closed your old session.

If you need to invite team members, manage seats and accounts you can do it from the licenses page.