Cell Hover Summary Tooltip
Usage
theme: 'ios' You can turn auto theming on and let it decide based on the platform.
Usage
themeVariant: 'light' You can turn auto dark mode on based on system settings.
Usage
clickToCreate: true,
// click to create is on dragToCreate: true,
// drag to create is on dragToMove: true,
// reordering is on dragToResize: true,
// resizing is on eventDelete: true
// deleting is on Fine-tune drag & drop with these options, which are false by default.
Usage
locale: localeEn Selecting the locale loads the localized settings and the translated UI text.
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.
Demo
Loading the live demo
The live demo didn't load.
Try it on demo.mobiscroll.comEvents
Invalid
Colors

Code
import { CommonModule } from '@angular/common';
import { Component, ViewChild } from '@angular/core';
import {
formatDate,
MbscCalendarEvent,
MbscCellHoverEvent,
MbscEventcalendarView,
MbscModule,
MbscPopup,
setOptions ,
} from '@mobiscroll/angular';
setOptions({
locale: ,
theme: ' ',
themeVariant: ' '
});
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
standalone: true,
imports: [CommonModule, MbscModule],
})
export class AppComponent {
@ViewChild('tooltip', { static: false })
tooltip!: MbscPopup;
myEvents: MbscCalendarEvent[] = [
{
start: '2026-10-21T08:00',
end: '2026-10-21T11:00',
title: 'Task 1',
},
{
start: '2026-10-22T14:00',
end: '2026-10-22T16:00',
title: 'Task 2',
},
{
start: '2026-10-23T15:00',
end: '2026-10-23T17:00',
title: 'Task 3',
},
{
start: '2026-10-23T10:00',
end: '2026-10-23T12:00',
title: 'Task 4',
},
{
start: '2026-10-24T08:00',
end: '2026-10-24T11:00',
title: 'Task 5',
},
{
start: '2026-10-24T09:00',
end: '2026-10-24T12:00',
title: 'Task 6',
},
{
start: '2026-10-24T10:00',
end: '2026-10-24T12:00',
title: 'Task 7',
},
{
start: '2026-10-24T10:00',
end: '2026-10-24T13:00',
title: 'Task 8',
},
{
start: '2026-10-24T10:00',
end: '2026-10-24T14:00',
title: 'Task 9',
},
{
start: '2026-10-24T16:00',
end: '2026-10-24T18:00',
title: 'Task 10',
},
{
start: '2026-10-25T13:00',
end: '2026-10-25T17:00',
title: 'Task 11',
},
{
start: '2026-10-25T18:00',
end: '2026-10-25T20:00',
title: 'Task 12',
},
{
start: '2026-10-26T08:00',
end: '2026-10-26T12:00',
title: 'Task 13',
},
{
start: '2026-10-26T15:00',
end: '2026-10-26T18:00',
title: 'Task 14',
},
{
start: '2026-10-27T08:00',
end: '2026-10-27T11:00',
title: 'Task 15',
},
{
start: '2026-10-27T15:00',
end: '2026-10-27T17:00',
title: 'Task 16',
},
{
start: '2026-10-28T09:00',
end: '2026-10-28T12:00',
title: 'Task 17',
},
];
myInvalid: MbscCalendarEvent[] = [
{
start: '2026-10-22T12:00',
end: '2026-10-22T13:00',
},
{
start: '2026-10-23T08:00',
end: '2026-10-23T10:00',
},
{
start: '2026-10-24T13:00',
end: '2026-10-24T15:00',
},
{
start: '2026-10-25T15:00',
end: '2026-10-25T17:00',
},
{
start: '10:00',
end: '11:00',
recurring: {
repeat: 'weekly',
weekDays: 'TU,TH,SA,SU',
},
},
];
myColors: MbscCalendarEvent[] = [
{
start: '2026-10-23T12:00',
end: '2026-10-23T14:00',
cssClass: 'mds-cell-summary-color',
},
{
start: '2026-10-24T10:00',
end: '2026-10-24T12:00',
cssClass: 'mds-cell-summary-color',
},
{
start: '2026-10-25T08:00',
end: '2026-10-25T11:00',
cssClass: 'mds-cell-summary-color',
},
{
start: '2026-10-26T14:00',
end: '2026-10-26T17: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',
},
];
myView: MbscEventcalendarView = {
scheduler: {
type: 'week',
startTime: '08:00',
endTime: '18:00',
timeCellStep: 30,
},
};
cellDate: string | null = null;
cellEventNr: number | null = null;
cellInvalidNr: number | null = null;
cellColorNr: number | null = null;
tooltipAnchor: HTMLElement | null = null;
handleCellHoverIn(args: MbscCellHoverEvent) {
const endDate = new Date(args.date);
endDate.setHours(endDate.getHours() + 1);
const date = formatDate('DDDD MMM D, YYYY, HA - ', args.date);
const time = formatDate('HA', endDate);
this.cellDate = date + time;
this.cellEventNr = args.events ? args.events.length : 0;
this.cellInvalidNr = args.invalids ? args.invalids.length : 0;
this.cellColorNr = args.colors ? args.colors.length : 0;
this.tooltipAnchor = args.target;
this.tooltip.open();
}
handleCellHoverOut() {
this.tooltip.close();
}
}
<mbsc-eventcalendar
#calendar
class="mds-cell-summary-on-hover"
[view]="myView"
[data]="myEvents"
[invalid]="myInvalid"
[colors]="myColors"
(onCellHoverIn)="handleCellHoverIn($event)"
(onCellHoverOut)="handleCellHoverOut()"
>
</mbsc-eventcalendar>
<mbsc-popup #tooltip display="anchored" [anchor]="tooltipAnchor" [showOverlay]="false" [touchUi]="false" [scrollLock]="false">
<div class="mds-cell-summary-title">{{cellDate}}</div>
<div class="mbsc-flex">
<div class="mbsc-flex-1-0 mds-cell-summary-item">
<div class="mbsc-txt-muted">Events</div>
<div class="mds-cell-summary-content">{{cellEventNr}}</div>
</div>
<div class="mbsc-flex-1-0 mds-cell-summary-item">
<div class="mbsc-txt-muted">Invalid</div>
<div class="mds-cell-summary-content">{{cellInvalidNr}}</div>
</div>
<div class="mbsc-flex-1-0 mds-cell-summary-item">
<div class="mbsc-txt-muted">Colors</div>
<div class="mds-cell-summary-content">{{cellColorNr}}</div>
</div>
</div>
</mbsc-popup>
.mds-cell-summary-on-hover .mbsc-schedule-events.mbsc-ltr {
right: 20px;
}
.mds-cell-summary-on-hover .mbsc-schedule-events.mbsc-rtl {
left: 20px;
}
.mds-cell-summary-on-hover .mbsc-schedule-item:hover {
box-shadow:
0px 1px 6px 3px rgba(0, 0, 0, 0.2),
0px 1px 6px 3px rgba(255, 255, 255, 0.2);
}
.mds-cell-summary-title {
font-size: 15px;
font-weight: 600;
margin-bottom: 10px;
}
.mds-cell-summary-item {
flex: 1;
}
.mds-cell-summary-content {
font-weight: 500;
opacity: 0.8;
margin-top: 5px;
}
.mds-cell-summary-color {
background: repeating-linear-gradient(-45deg, #cce9d3, #cce9d3 10px, #c5dfc1 10px, #c5dfc1 20px);
opacity: 0.5;
}