Menu bar

MenuBarControl · MenuDropDownControl · MenuActionControl

A classic application menu: a bar of dropdown menus, or one menu button on its own.

Overview

MenuBarControl is a Blazor menu bar: it holds MenuDropDownControl menus and keeps one open at a time. Each menu lists MenuActionControl entries and MenuSeparatorControl dividers. A MenuDropDownControl also works alone, as a menu button or a split button, and can fill its entries as it opens. This site's top menu is a MenuBarControl of MenuDropDownControl menus.

Examples

#An application menu bar

Run the Website relaunch task list from its menus: Task adds, starts and finishes tasks, and View changes how the list is shown. Entries turn Disabled when they have nothing to act on, View's check marks are text set through Icon, and one whole menu is disabled. Use Down, Up, Home, End, Enter and Escape inside an open menu.

#A split button

Without a bar, a menu opens on its own. Send status report is a SplitButton: the left half runs PrimaryClick, and the arrow opens the other things to send.

Website relaunch for Green Fork Cafe, client contact Albus Door
  • Nothing sent yet

#A menu filled when it opens

Open In review and approve a task: OnOpening reads the list each time the menu opens, so an approved task is gone the next time, and the count in the trigger, your own TriggerContent, drops.

Nothing approved yet. The list was read 0 times.

Documentation

ParameterTypeDefaultDescription
ChildContentRenderFragment?nullThe MenuDropDownControls, and any other markup such as links.
CssClassstring""Appended after fx-menu-bar.
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.