Load Events from API

The calendar can be populated by passing an array to the data option, that you can construct either inline or by getting it from a remote API. The important thing to remember is that events need to be in a format that the calendar understands.

Interested in load on demand?  Dynamically load events on month change →
Download and try example

Demo

Loading the live demo

Preview in full screen

Load events into a event calendar from a remote API — pass event data in the correct format to populate the calendar view.

Code

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

$(function () {
  var inst = $('#demo-remote-api')
    .mobiscroll()
    .eventcalendar({
      view: {
        calendar: { labels: true },
      },
    })
    .mobiscroll('getInst');

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

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.