showUnassigned
Adds an “Unassigned” column first to resource views (a row to the timeline) for events on no known resource.
| Type | boolean |
|---|---|
| Default | false |
Live update (update()) | Yes |
| Declared in | packages/core/src/kernel.ts |
What it does
Section titled “What it does”An event with no resourceId, or one naming a resource that is not in
resources, is not shown by resource views — it belongs to no column. With
showUnassigned: true they gather in a first column, “Unassigned” (the
words are messages’), where a person can see them and drag them onto a
resource.
Example
Section titled “Example”import { createCalendar } from '@dzcalendar/dom';
const calendar = createCalendar(element, { timeZone: 'Europe/Paris', initialView: 'resourceTimeGridDay', resources: [{ id: 'benali', title: 'Dr Benali' }], events: [{ id: 'u', title: 'To assign', start: '2026-10-21T11:00[Europe/Paris]' }], editable: true, showUnassigned: true,});
// Later: assigned ones only.calendar.update({ showUnassigned: false });import { Component } from '@angular/core';import { DZ_CALENDAR } from '@dzcalendar/angular';
@Component({ selector: 'app-agenda', imports: [DZ_CALENDAR], template: `<dz-calendar timeZone="Europe/Paris" view="resourceTimeGridDay" [resources]="doctors" [options]="{ showUnassigned: true }" />`,})export class Agenda { readonly doctors = [{ id: 'benali', title: 'Dr Benali' }];}import { DzCalendar } from '@dzcalendar/react';
const DOCTORS = [{ id: 'benali', title: 'Dr Benali' }];
export function Agenda() { return <DzCalendar timeZone="Europe/Paris" defaultView="resourceTimeGridDay" resources={DOCTORS} showUnassigned />;}<script setup lang="ts">import { DzCalendar } from '@dzcalendar/vue';
const doctors = [{ id: 'benali', title: 'Dr Benali' }];</script>
<template> <DzCalendar time-zone="Europe/Paris" view="resourceTimeGridDay" :resources="doctors" :options="{ showUnassigned: true }" /></template>In Angular and Vue it goes in options; in React it is a prop.
Live demo
Section titled “Live demo”The visit to assign appears in the first column.
See also
Section titled “See also”resources— the columns.editable— drag an event onto a resource.- Resources & timeline.