Skip to content
IzzyBlazor

Enter all results ↑ ↓ move Esc close

Scheduler

Since 0.1.0-alpha.22
Shows appointments in a day, a week, a month or a list, drawn on the server, with its view and date in the page's address.

IzzyBlazor.Scheduler<TItem> in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.32 assembly and its doc comments.

Properties (30)

ItemsIEnumerable<TItem>?Added in 0.1.0-alpha.22

The appointments. A list is read in memory; an IQueryable (such as an EF Core query) is filtered by the database to the days shown. For other sources, use ItemsProvider.

ItemsProviderFunc<SchedulerRequest, ValueTask<IEnumerable<TItem>>>?Added in 0.1.0-alpha.22

Loads the appointments for the days shown yourself, in place of Items, from a web API or a cache: the request has the range, the view and the hidden categories. Asked for each page drawn. An exception it throws shows "Couldn't load the appointments." with Retry (and is logged); a request that was canceled is ignored. While it loads on an interactive page, the appointments shown stay, and the Scheduler is aria-busy.

StartExpression<Func<TItem, DateTime>> requiredAdded in 0.1.0-alpha.22

When each appointment starts, such as b => b.Start.

EndExpression<Func<TItem, DateTime>> requiredAdded in 0.1.0-alpha.22

When each appointment ends, such as b => b.End. An end at midnight is the end of the day before.

TitleExpression<Func<TItem, object?>> requiredAdded in 0.1.0-alpha.22

Each appointment's title, such as b => b.Subject.

DetailFunc<TItem, string?>?Added in 0.1.0-alpha.22

A line of detail with each appointment's title, such as b => b.Location: under it in the day and week views' taller boxes, after it in a short one, in the agenda and the card. Shown only: the form has no field for it, so it can be worked out from other values.

ToolbarContentRenderFragment?Added in 0.1.0-alpha.22

The page's own controls in the toolbar: ToolbarButton, ToolbarMenu and the like, at the start after the period, or at the end with Position. Write SchedulerToday, SchedulerArrows, SchedulerPeriod, SchedulerCategories, SchedulerViews or SchedulerNew here to place the Scheduler's own among them; the rest keep their places. The Scheduler reads this once more on each render, to see which parts are here.

ErrorContentRenderFragment?Added in 0.1.0-alpha.22

Shown in place of "Couldn't load the appointments." when loading fails, before the Retry button.

AppointmentTemplateRenderFragment<SchedulerAppointmentContext<TItem>>?Added in 0.1.0-alpha.22

Draws each appointment's text yourself, in place of its title and Detail: an icon for a recurring one, a status, an avatar. The context has the item, the view, and whether there's one line (a short box, a bar or a month's row) or room to wrap. It's drawn inside the appointment's link or button, so no buttons or links of its own; screen readers still hear the appointment's title, detail, category and time, so say in Detail what matters. The month's start time and the agenda's times stay.

DayHeaderTemplateRenderFragment<DateOnly>?Added in 0.1.0-alpha.22

Adds to each day's header, after its date: the weather, who's away, a holiday. In the day and week views' headers, each month day's top row and beside each agenda date. Read by screen readers, and it may hold links or buttons.

ShowTimebool = falseAdded in 0.1.0-alpha.22

Shows each appointment's times in its box in the day and week views. Off by default: the hours beside it say when (Outlook's way), and screen readers hear the whole time either way.

AllDayExpression<Func<TItem, bool>>?Added in 0.1.0-alpha.22

Whether an appointment is all day, such as b => b.AllDay: a bar over its days, with no times. Appointments a day long or more are bars too.

ColorFunc<TItem, string?>? (computed)Added in 0.1.0-alpha.22

Each appointment's color, a CSS color such as var(--ib-color-danger). Defaults to the palette's first color.

@bind-ViewSchedulerView = SchedulerView.WeekAdded in 0.1.0-alpha.22 @bind: Interactive only

The view it opens on: SchedulerView.Week by default. The reader's choice is in the page's address, and wins. Bound (@bind-View) on an interactive page, it's the view shown, kept in the component instead of the address.

ViewOptionsIReadOnlyList<SchedulerView>?Added in 0.1.0-alpha.22

The views in its menu, in order. All five by default.

@bind-DateDateOnly?Added in 0.1.0-alpha.22 @bind: Interactive only

The day it opens on: today by default. The reader's page is in the page's address, and wins. Bound (@bind-Date) on an interactive page, it's the day shown, kept in the component instead of the address.

QueryPrefixstring = ""Added in 0.1.0-alpha.22

Prefix for its keys in the page's address, so several can share a page: QueryPrefix="rooms-" uses ?rooms-view=month&rooms-date=2026-11-09. None by default (?view=…&date=…).

Shortcutsbool = trueAdded in 0.1.0-alpha.22

The keyboard shortcuts (T, N, P, the views' letters and C) while focus is in it. On by default.

FirstDayOfWeekDayOfWeek?Added in 0.1.0-alpha.22

The week's first day: the culture's by default.

AgendaDaysint = 7Added in 0.1.0-alpha.22

How many days the agenda lists. 7 by default.

MonthLimitint = 3Added in 0.1.0-alpha.22

How many appointments a month's day shows before "+N more". 3 by default.

DayStartint = 8Added in 0.1.0-alpha.22

The hour the day and week views open scrolled to (with script). 8 by default.

HeightLength?Added in 0.1.0-alpha.22

The height of the day and week views' hours, which scroll inside it. 40rem by default. With Grow in a column that fills its page (and in a growing Card), the hours take the room left instead, so the page doesn't scroll too.

Labelstring?Added in 0.1.0-alpha.22

Its name for screen readers. "Schedule" by default.

CategoryExpression<Func<TItem, string?>>?Added in 0.1.0-alpha.22

Each appointment's category, such as b => b.Kind, matched to a SchedulerCategory's Value: its color, the Categories menu that shows or hides it, and a choice in the edit form, which sets it.

CategoriesIReadOnlyList<SchedulerCategory>?Added in 0.1.0-alpha.22

The kinds of appointment, in the order of the Categories menu: written out, or made from your own data, such as kinds.Select(k => new SchedulerCategory(k.Id, k.Name)).

ItemKeyFunc<TItem, string>?Added in 0.1.0-alpha.22

Each appointment's key, such as b => b.Id.ToString(): with OnSave, it names the appointment a link opens in the form (?appointment=42). With an IQueryable or an ItemsProvider, only the days shown are loaded, so a link of your own (in an email, say) names the appointment's day too, as the Scheduler's do: ?date=2026-11-17&appointment=42.

DescriptionExpression<Func<TItem, string?>>?Added in 0.1.0-alpha.22

Each appointment's description, such as b => b.Notes: a field in the form.

EditDialogFormRenderFragment<SchedulerEditFormContext<TItem>>?Added in 0.1.0-alpha.22

Your own form in the edit dialog, in place of the generated one, for what a use case needs: a patient and a reason, a room's attendees, what to show beside the fields. The Scheduler opens the dialog as before (an appointment, New, a click on empty time) and closes it; the form, its model and its [SupplyParameterFromForm] are yours, and on a static page, so is guarding against forged fields, with a view model. The context has the appointment (none for a new one) and its times (the time clicked for a new one); call context.CloseAsync() when it has saved, and put autofocus on its first field. Needs ItemKey. Dragging to new times still saves through OnSave, and is off without it: a form with no times leaves OnSave out, so moving stays something a keyboard can do too. A drag OnSave refuses says why above the view.

ItemHrefFunc<TItem, string?>?Added in 0.1.0-alpha.24

Makes each appointment a link to a page of its own, such as b => $"bookings/{b.Id}", in place of its card or its form: the page shows it, and is where it's changed. Hovering still shows the card. An appointment it returns null for keeps its card or form.

Events (2)

OnSaveEventCallback<SchedulerSave<TItem>>Added in 0.1.0-alpha.22

Saves an appointment from the form, new or changed, on a static page too (the form posts): with it and ItemKey, appointments are links that open the form, and the toolbar has a New button. save.CopyTo(item) sets the mapped properties; save.AddError keeps the form open with a message.

OnDeleteEventCallback<SchedulerDelete<TItem>>Added in 0.1.0-alpha.22

Deletes an appointment: with it, the generated form has a Delete button. Not with an EditDialogForm, whose form deletes.

Parts (6)

Components written inside Scheduler, documented here with it.

SchedulerToday

The Scheduler's Today link, placed in its ToolbarContent.

PositionToolbarPosition?Added in 0.1.0-alpha.22

Where it sits, among the items of that position in the order they're written. The navigation's parts default to the start, the rest to the end.

Forstring?Added in 0.1.0-alpha.24

The id of the Scheduler it acts on, when it's outside the Scheduler. Leave it out in the Scheduler's ToolbarContent, or in a Tile or Card with one Scheduler: it acts on that one.

SchedulerArrows

The Scheduler's previous and next arrows, placed in its ToolbarContent.

PositionToolbarPosition?Added in 0.1.0-alpha.22

Where it sits, among the items of that position in the order they're written. The navigation's parts default to the start, the rest to the end.

Forstring?Added in 0.1.0-alpha.24

The id of the Scheduler it acts on, when it's outside the Scheduler. Leave it out in the Scheduler's ToolbarContent, or in a Tile or Card with one Scheduler: it acts on that one.

SchedulerPeriod

The Scheduler's period ("November 2026"), which opens a month to go to any date, placed in its ToolbarContent.

PositionToolbarPosition?Added in 0.1.0-alpha.22

Where it sits, among the items of that position in the order they're written. The navigation's parts default to the start, the rest to the end.

Forstring?Added in 0.1.0-alpha.24

The id of the Scheduler it acts on, when it's outside the Scheduler. Leave it out in the Scheduler's ToolbarContent, or in a Tile or Card with one Scheduler: it acts on that one.

SchedulerCategories

The Scheduler's Categories menu, placed in its ToolbarContent; it shows when the Scheduler has categories.

PositionToolbarPosition?Added in 0.1.0-alpha.22

Where it sits, among the items of that position in the order they're written. The navigation's parts default to the start, the rest to the end.

Forstring?Added in 0.1.0-alpha.24

The id of the Scheduler it acts on, when it's outside the Scheduler. Leave it out in the Scheduler's ToolbarContent, or in a Tile or Card with one Scheduler: it acts on that one.

SchedulerViews

The Scheduler's view menu, placed in its ToolbarContent; it shows when there's more than one view.

PositionToolbarPosition?Added in 0.1.0-alpha.22

Where it sits, among the items of that position in the order they're written. The navigation's parts default to the start, the rest to the end.

Forstring?Added in 0.1.0-alpha.24

The id of the Scheduler it acts on, when it's outside the Scheduler. Leave it out in the Scheduler's ToolbarContent, or in a Tile or Card with one Scheduler: it acts on that one.

SchedulerNew

The Scheduler's New button, placed in its ToolbarContent; it shows with OnSave or an EditDialogForm.

PositionToolbarPosition?Added in 0.1.0-alpha.22

Where it sits, among the items of that position in the order they're written. The navigation's parts default to the start, the rest to the end.

Forstring?Added in 0.1.0-alpha.24

The id of the Scheduler it acts on, when it's outside the Scheduler. Leave it out in the Scheduler's ToolbarContent, or in a Tile or Card with one Scheduler: it acts on that one.

Types (9)

Length

struct

A width, height or flex basis: a size token, a keyword, or a CSS length built with a factory such as Rem.

Length members
MemberDescription
Sm

640px (matches the sm breakpoint).

Md

768px (matches the md breakpoint).

Lg

1024px (matches the lg breakpoint).

Xl

1280px (matches the xl breakpoint).

Prose

A comfortable reading width, 68 characters.

Full

100% of the containing block.

Auto

auto.

FitContent

fit-content: as wide as the content, up to the available space.

MinContent

min-content.

MaxContent

max-content.

Px(double value)

Pixels.

Rem(double value)

Root ems (16px each by default).

Percent(double value)

Percent of the containing block.

Ch(double value)

Character widths, for text measures.

Vw(double value)

Percent of the viewport width.

Dvh(double value)

Percent of the dynamic viewport height (accounts for mobile browser bars).

Of(string css)

Any CSS length, such as calc(100% - 2rem). Checked for unsafe characters.

Css string

The CSS value this length renders as.

SchedulerAppointmentContext

record

What a Scheduler's AppointmentTemplate draws for: an appointment, where.

SchedulerAppointmentContext members
MemberDescription
Item TItem

The appointment.

View SchedulerView

The view it's drawn in.

OneLine bool

Whether it has one line: a box under 45 minutes, an all-day bar or a month's row. Otherwise it's a taller box or an agenda row, with room to wrap.

SchedulerCategory

record

A kind of appointment in a Scheduler<T>, such as Work or Family: its color, and an item in the toolbar's Categories menu that shows or hides its appointments. An appointment's category is the Scheduler's Category value that matches Value. The Scheduler takes a list of them as Categories, written out or made from data: kinds.Select(k => new SchedulerCategory(k.Id, k.Name, k.Color)).

new SchedulerCategory("work", "Work", "var(--ib-chart-7)")

SchedulerCategory members
MemberDescription
Value string

What an appointment's Category gives for it, such as "work": also its key in the page's address when hidden.

Label string?

Its name in the Categories menu and the form, and what screen readers hear with its appointments. Defaults to Value.

Color string?

Its appointments' color, a CSS color such as var(--ib-chart-3), unless an appointment has its own. Defaults to the palette's next.

SchedulerDelete

class

A delete from a Scheduler<T>, for its OnDelete. With an error added, the form stays open and shows it.

SchedulerDelete members
MemberDescription
Item TItem

The appointment to delete.

AddError(string message)

Reports why it can't be deleted, shown at the top of the form, which stays open.

SchedulerEditFormContext

class

What a Scheduler's EditDialogForm gets.

SchedulerEditFormContext members
MemberDescription
Item TItem

The appointment as loaded, which isn't a copy, or the default for a new one.

IsNew bool

Whether it's a new appointment.

Start DateTime

When it starts: the time clicked or asked for a new one, else the appointment's.

End DateTime

When it ends: an hour after a new one's start, else the appointment's.

CloseAsync()

Closes the dialog and loads the days shown again, once your form has saved.

SchedulerRequest

record

What a Scheduler<T>'s ItemsProvider is asked for: the appointments that touch the days shown, from Start up to End, leaving out the hidden categories. It's asked again for each page drawn: another day, week or view, and after a save, a delete or a move.

SchedulerRequest members
MemberDescription
Start DateTime

The first day shown, at midnight.

End DateTime

The day after the last shown, at midnight: an appointment touches the days shown when it starts before this and ends after Start.

View SchedulerView

The view shown.

HiddenCategories IReadOnlyCollection<string>

The categories hidden from the Categories menu: their appointments needn't come.

CancellationToken CancellationToken

Canceled when another page is asked for first, or the Scheduler goes away.

SchedulerSave

class

A save from a Scheduler<T>, for its OnSave: the form's values, and the appointment they're for (none for a new one). With no errors added, the form closes; with errors, it stays open and shows them.

SchedulerSave members
MemberDescription
Item TItem

The appointment being edited, or the default for a new one.

IsNew bool

Whether it's a new appointment.

Fields SchedulerEditFields

The form's values.

Title string

The title.

Start DateTime

When it starts.

End DateTime

When it ends (all day: the midnight after its last day).

AllDay bool

Whether it's all day.

Description string?

The description, when the Scheduler has one.

Category string?

The category, when the Scheduler has categories.

AddError(string message)

Reports a problem with the save, shown at the top of the form, which stays open.

CopyTo(TItem target)

Sets the Scheduler's Start, End, Title, AllDay, Description and Category properties on target from the form, such as a new appointment or one just read from the database, and leaves the rest of it alone.

SchedulerView

enum

What a Scheduler<T> shows: days in time columns, a month, or a list.

SchedulerView values
ValueDescription
Day

One day, in a column of hours.

Week

Seven days from the week's first day, a column of hours each.

WorkWeek

The working days of the week (Monday to Friday), a column of hours each.

Month

The month's weeks, six rows of days, each listing its appointments.

Agenda

The appointments of the coming days as a list, by day.

ToolbarPosition

enum

Where an item of a Toolbar sits.

ToolbarPosition values
ValueDescription
Start

At the start (the left in left-to-right text), the default.

Center

In the middle, kept centered between the start and the end.

End

At the end, before the "…" menu.

Connection lost

Rejoining the server…