---
title: "Angular Scheduler Hide All-Day Section Example | Mobiscroll"
component: "Scheduler"
framework: "Angular"
library_version: "6.2.0"
url: "https://demo.mobiscroll.com/angular/scheduler/disable-all-day-events"
---

# Hide All-Day Section - Angular Scheduler demo

Hide the all-day row in the Angular Scheduler to show only timed events — ideal for appointment booking, service scheduling, or shift-based views.

- [Live demo](https://demo.mobiscroll.com/angular/scheduler/disable-all-day-events)
- [View code on GitHub](https://github.com/acidb/mobiscroll-demos-angular/tree/main/src/demos/eventcalendar/scheduler/disable-all-day-events)
- This demo in other frameworks: [JavaScript](https://demo.mobiscroll.com/scheduler/disable-all-day-events.md), [jQuery](https://demo.mobiscroll.com/jquery/scheduler/disable-all-day-events.md), [React](https://demo.mobiscroll.com/react/scheduler/disable-all-day-events.md), [Vue](https://demo.mobiscroll.com/vue/scheduler/disable-all-day-events.md)

## Description

Hide the all-day events section of the scheduler by setting the `allDay` property under the [`view.scheduler`](https://mobiscroll.com/docs/angular/eventcalendar/api#opt-view) option.

## What this demo shows

- A desktop weekly scheduler layout with a fixed week strip, a fixed all-day row, and a vertically scrollable time grid for the selected week.
- **View selection** A configuration panel next to the scheduler lets users switch between `Day view` and `Week view`, with `Week view` selected by default.
- **All-day section control** A switch titled `Control over the all-day section` is enabled by default and labeled `Show all-day events`.
- **All-day visibility** The switch controls whether the all-day section below the header is shown or hidden.
- **Header navigation** The month and year label in the top left opens date navigation, while the previous and next arrows and the `Today` button on the right move between weeks or jump back to the current day.
- **Week strip** The fixed strip below the header displays the days of the selected week, with the current date highlighted by a blue circle.
- **All-day events** All-day events appear in a dedicated row that stays fixed above the time grid if the option is enabled.
- **Time grid** The scheduler grid scrolls vertically through the hours of the selected week.
- **Timed events** Timed events are shown as colored cards with a colored stripe on the left, the exact start and end time above the title, and the event title in bold.
- **Event overlapping** Overlapping events are placed side by side so each event remains visible.
- **Current time** A blue current-time line appears across the time grid, with a small blue marker on the current date.
- **Hover behavior** Hovering over the time grid shows a time indicator that follows the cursor in 15-minute increments.
- **Event interaction** Hovering over events highlights them and shows drag and resize handles for repositioning events or changing their duration.
- **Event selection** Clicking an event selects and highlights it.
- **Event creation** Double-clicking the time grid or clicking and dragging on it creates a new event.

## Best for

- **Resource planning** Resource planning scenarios where only timed appointments and shifts are relevant.
- **Service scheduling** Service scheduling applications such as healthcare, field service, or consultations where all events have a specific start and end time.
- **Booking and reservation systems** Booking and reservation systems that do not support all-day appointments.

## Tutorial

- ( ) Daily schedule
- (x) Weekly schedule

### Control over the all-day section

- [x] Show all-day events

```html
<mbsc-eventcalendar
    [view]="{scheduler: { type: 'week', allDay: true }}">
</mbsc-eventcalendar>
```

With "Daily schedule":

```html
<mbsc-eventcalendar
    [view]="{scheduler: { type: 'day', allDay: true }}">
</mbsc-eventcalendar>
```

## API used in this demo

- [`theme`](https://mobiscroll.com/docs/angular/eventcalendar/api#opt-theme) - option
- [`themeVariant`](https://mobiscroll.com/docs/angular/eventcalendar/api#opt-themeVariant) - option
- [`data`](https://mobiscroll.com/docs/angular/eventcalendar/api#opt-data) - option
- [`view`](https://mobiscroll.com/docs/angular/eventcalendar/api#opt-view) - option

## Code

### Component

```ts
import { CommonModule } from '@angular/common';
import { HttpClient } from '@angular/common/http';
import { Component, OnInit } from '@angular/core';
import { MbscModule, setOptions } from '@mobiscroll/angular';

setOptions({
  theme: 'ios',
  themeVariant: 'light'
});

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

  events: any;

  ngOnInit() {
    this.http.jsonp('https://trial.mobiscroll.com/events/?vers=5', 'callback').subscribe((resp: any) => {
      this.events = resp;
    });
  }
}
```

### Template

```html
<mbsc-eventcalendar [data]="events" [view]="{scheduler: { type: 'week', allDay: false }}"></mbsc-eventcalendar>
```

## Implementation notes

- Use `view: { scheduler: { type: 'week', allDay: false } }` - setting `allDay: false` hides the all-day events row entirely.
- Load events from `https://trial.mobiscroll.com/events/?vers=5` via JSONP using `getJson(url, callback, 'jsonp')`. React/Angular/Vue: assign the fetched array to the state/property bound to the `data` prop. JS/jQuery (imperative API): call `inst.setEvents(events)` in the callback.

## Run it in your project

1. If not signed up yet, or don't own a license, you can [start a free trial](https://mobiscroll.com/starttrial).

2. Clone the repository:

   ```
   git clone https://github.com/acidb/mobiscroll-demos-angular.git
   ```

3. If not installed yet, install the Mobiscroll CLI from NPM:

   ```
   npm install -g @mobiscroll/cli
   ```

4. Config Mobiscroll - open a terminal window in the root directory and run:

   ```
   mobiscroll config angular
   ```

5. Install dependencies - open a terminal window in the root directory and run:

   ```
   npm install
   ```

6. Run the project:

   ```
   ng serve
   ```

On a trial, add `--trial` to the config command: `mobiscroll config angular --trial`.

Running a demo locally requires a Mobiscroll trial or a license; setup is per framework at https://mobiscroll.com/docs/angular/getting-started/installation

## Related demos

- Previous: [Custom Date Range View](https://demo.mobiscroll.com/angular/scheduler/display-multiple-days-weeks.md) - Configure the Angular Scheduler with a custom range size — set a reference date to control rolling or fixed multi-period paging.
- Next: [Color-Coded Time Blocks](https://demo.mobiscroll.com/angular/scheduler/colored-cell-background.md) - Color Angular Scheduler cell backgrounds for time ranges — mark lunch breaks, maintenance windows, or recurring schedules.
