Angular Agenda Empty State

Customize the look of the empty state through templating or custom render functions. Give a more purposeful feedback to the user and optionally add further actions to it. The template can be totally custom or dynamic based on any criteria.

Use the agendaEmptyTemplate template for putting your custom content together.

Get started with this example

Demo

Loading the live demo

Preview in full screen

Show a custom empty state in the agenda when a day has no events, with a message and an optional action button.

Code

import { CommonModule } from '@angular/common';
import { Component } from '@angular/core';
import { MbscCalendarEvent, MbscEventcalendarView, MbscModule, Notifications, setOptions  } from '@mobiscroll/angular';

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

@Component({
  selector: 'app-root', 
  templateUrl: './app.component.html',
  providers: [Notifications],
  standalone: true,
  imports: [CommonModule, MbscModule],
})
export class AppComponent {
  constructor(private notify: Notifications) {}

  myEvents: MbscCalendarEvent[] = [
    {
      title: 'Zumba Class',
      start: '2026-11-17T17:00',
      end: '2026-11-17T19:00',
    },
    {
      title: 'Silent Party',
      start: '2026-11-17T21:00',
      end: '2026-11-17T23:00',
    },
    {
      title: 'Garbage Collection',
      start: '2026-12-01T15:00',
      end: '2026-12-01T17:00',
    },
    {
      title: 'Karaoke Night',
      start: '2026-12-01T20:00',
      end: '2026-12-01T22:00',
    },
  ];

  myView: MbscEventcalendarView = {
    calendar: { type: 'week' },
    agenda: { type: 'week' },
  };

  addEvent(): void {
    this.notify.toast({
      message: 'Add button clicked',
    });
  }
}

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.