Color-Coded Time Blocks

Color the background of entire days or time ranges with the colors option. You can specify backgrounds as exact dates, ranges or set up recurring rules. The recurring object works the same way as for the events. Optionally, you can specify a title as well, which will be displayed on the colored block.

Use the onPageLoading lifecycle event to color backgrounds runtime. You can learn about lifecycle events and places where to drop logic to customize the experience.

Want to use patterns as backgrounds and customize how the invalid cells look?  Learn how to do it →
Download and try example

Demo

Loading the live demo

Preview in full screen

Color Scheduler cell backgrounds for time ranges — mark lunch breaks, maintenance windows, or recurring schedules.

Code

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

$(function () {
  var inst = $('#demo-colored')
    .mobiscroll()
    .eventcalendar({
      clickToCreate:  ,
      dragToCreate:  ,
      dragToMove:  ,
      dragToResize:  ,
      eventDelete:  ,
      view: {
        scheduler: { type: 'week' },
      },
      colors: [
        {
          date: '2026-10-29T00:00',
          background: '#f3c3d480',
        },
        {
          start: '2026-10-30T07:00',
          end: '2026-10-30T14:00',
          background: '#fde4c880',
        },
        {
          start: '2026-11-01T12:00',
          end: '2026-11-02T20:00',
          background: '#d5f1ea80',
        },
        {
          start: '2026-11-06T06:00',
          end: '2026-11-06T08:00',
          background: '#d5eaf780',
        },
        {
          start: '2026-11-10T00:00',
          end: '2026-11-13T00:00',
          allDay: true,
          background: '#e7ffe280',
        },
        {
          start: '2026-11-16T10:00',
          end: '2026-11-17T08:00',
          background: '#fbedd080',
        },
        {
          start: '12:00',
          end: '13:00',
          background: '#ffdbdb80',
          recurring: {
            repeat: 'weekly',
            weekDays: 'MO,TU,WE,TH,FR',
          },
          title: 'Lunch',
        },
      ],
    })
    .mobiscroll('getInst');

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

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.