Cell Hover Summary Tooltip

This demo demonstrates how to surface detailed cell summaries through tooltips when hovering over schedule cells.

Using onCellHoverIn and onCellHoverOut events, each tooltip dynamically displays the total number of events, invalid and colors in the hovered cell.

Download and try example

Demo

Loading the live demo

Preview in full screen

Show a per-cell summary tooltip in the Scheduler — hover over any schedule cell to display event count, invalid slots, and color ranges.

Code

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

var cellDate = document.getElementById('demo-cell-summary-date');
var cellEventNr = document.getElementById('demo-cell-summary-events');
var cellInvalidNr = document.getElementById('demo-cell-summary-invalid');
var cellColorNr = document.getElementById('demo-cell-summary-colors');

mobiscroll.eventcalendar('#demo-show-cell-summary-on-hover', {
  view: {
    scheduler: {
      type: 'week',
      startTime: '08:00',
      endTime: '18:00',
      timeCellStep: 30,
    },
  },
  data: [
    {
      start: '2026-10-20T08:00',
      end: '2026-10-20T11:00',
      title: 'Task 1',
    },
    {
      start: '2026-10-21T14:00',
      end: '2026-10-21T16:00',
      title: 'Task 2',
    },
    {
      start: '2026-10-22T15:00',
      end: '2026-10-22T17:00',
      title: 'Task 3',
    },
    {
      start: '2026-10-22T10:00',
      end: '2026-10-22T12:00',
      title: 'Task 4',
    },
    {
      start: '2026-10-23T08:00',
      end: '2026-10-23T11:00',
      title: 'Task 5',
    },
    {
      start: '2026-10-23T09:00',
      end: '2026-10-23T12:00',
      title: 'Task 6',
    },
    {
      start: '2026-10-23T10:00',
      end: '2026-10-23T12:00',
      title: 'Task 7',
    },
    {
      start: '2026-10-23T10:00',
      end: '2026-10-23T13:00',
      title: 'Task 8',
    },
    {
      start: '2026-10-23T10:00',
      end: '2026-10-23T14:00',
      title: 'Task 9',
    },
    {
      start: '2026-10-23T16:00',
      end: '2026-10-23T18:00',
      title: 'Task 10',
    },
    {
      start: '2026-10-24T13:00',
      end: '2026-10-24T17:00',
      title: 'Task 11',
    },
    {
      start: '2026-10-24T18:00',
      end: '2026-10-24T20:00',
      title: 'Task 12',
    },
    {
      start: '2026-10-25T08:00',
      end: '2026-10-25T12:00',
      title: 'Task 13',
    },
    {
      start: '2026-10-25T15:00',
      end: '2026-10-25T18:00',
      title: 'Task 14',
    },
    {
      start: '2026-10-26T08:00',
      end: '2026-10-26T11:00',
      title: 'Task 15',
    },
    {
      start: '2026-10-26T15:00',
      end: '2026-10-26T17:00',
      title: 'Task 16',
    },
    {
      start: '2026-10-27T09:00',
      end: '2026-10-27T12:00',
      title: 'Task 17',
    },
  ],
  invalid: [
    {
      start: '2026-10-21T12:00',
      end: '2026-10-21T13:00',
    },
    {
      start: '2026-10-22T08:00',
      end: '2026-10-22T10:00',
    },
    {
      start: '2026-10-23T13:00',
      end: '2026-10-23T15:00',
    },
    {
      start: '2026-10-24T15:00',
      end: '2026-10-24T17:00',
    },
    {
      start: '10:00',
      end: '11:00',
      recurring: {
        repeat: 'weekly',
        weekDays: 'TU,TH,SA,SU',
      },
    },
  ],
  colors: [
    {
      start: '2026-10-22T12:00',
      end: '2026-10-22T14:00',
      cssClass: 'mds-cell-summary-color',
    },
    {
      start: '2026-10-23T10:00',
      end: '2026-10-23T12:00',
      cssClass: 'mds-cell-summary-color',
    },
    {
      start: '2026-10-24T08:00',
      end: '2026-10-24T11:00',
      cssClass: 'mds-cell-summary-color',
    },
    {
      start: '2026-10-25T14:00',
      end: '2026-10-25T17:00',
      cssClass: 'mds-cell-summary-color',
    },
    {
      start: '08:00',
      end: '09:00',
      cssClass: 'mds-cell-summary-color',
      recurring: {
        repeat: 'weekly',
        weekDays: 'MO,FR',
      },
    },
    {
      start: '14:00',
      end: '16:00',
      cssClass: 'mds-cell-summary-color',
      recurring: {
        repeat: 'weekly',
        weekDays: 'TU,TH',
      },
    },
    {
      start: '10:00',
      end: '12:00',
      recurring: {
        repeat: 'weekly',
        weekDays: 'FR',
      },
      cssClass: 'mds-cell-summary-color',
    },
    {
      start: '16:00',
      end: '17:00',
      recurring: {
        repeat: 'weekly',
        weekDays: 'SU,SA',
      },
      cssClass: 'mds-cell-summary-color',
    },
  ],
  onCellHoverIn: function (args) {
    var endDate = new Date(args.date);
    endDate.setHours(endDate.getHours() + 1);
    var date = mobiscroll.formatDate('DDDD MMM D, YYYY, HA - ', args.date);
    var time = mobiscroll.formatDate('HA', endDate);

    cellDate.textContent = date + time;
    cellEventNr.textContent = args.events ? args.events.length : 0;
    cellInvalidNr.textContent = args.invalids ? args.invalids.length : 0;
    cellColorNr.textContent = args.colors ? args.colors.length : 0;

    tooltip.setOptions({
      anchor: args.target,
    });

    tooltip.open();
  },
  onCellHoverOut: function () {
    tooltip.close();
  },
});

var tooltip = mobiscroll.popup('#demo-cell-summary-popup', {
  display: 'anchored',
  showOverlay: false,
  touchUi: false,
  scrollLock: false,
});
  

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.