Adaptability
Since 0.1.0-alpha.13
The members for adaptability, and the types they use. Every member of
IzzyBlazor.Toolbar is on the Toolbar API.
Properties (4)
Wrapbool = falseWraps onto more rows instead of moving items into a "…" menu, for toolbars where everything must show. Controls wrap one by one, filling each row; a separator at a row's edge is hidden.
CollapseLabelsbool = falseBefore anything moves into the "…" menu, buttons and menus with a StartIcon drop their text, all at once, and show only the icon (a menu keeps its chevron). The text stays for screen readers and, with script, is the tooltip. Items move into the menu only once that isn't enough. One with ToolbarOverflow.Never, such as the main action, keeps its text.
MoreLabelstring? = "More actions"The "…" button's name for screen readers and its tooltip. Defaults to "More actions".
FloatLabelstring? = "Actions"The name of the speed dial its floating items share when more than one floats at the same width (FloatBelow), such as "Create". Defaults to "Actions".
Parts (6)
Components written inside Toolbar, and the columns' members, which PropertyColumn, TemplateColumn and DynamicColumn share.
ToolbarButton
A Button in a Toolbar or a ToolbarButtonGroup. In the "…" menu it's a menu item with the same link, form post and OnClick. For a toggle, use ToolbarToggleButton.
Priorityint = 0Which items stay longest when there's no room: higher stays longer. Defaults to 0. Items with the same priority move into the menu from the middle of the toolbar outward.
When it moves into the "…" menu: ToolbarOverflow.Never for the main action, ToolbarOverflow.Always for what only the menu needs. Defaults to ToolbarOverflow.Auto.
FloatBelowBreakpoint?Below this width it's a floating button at the screen's bottom corner instead, with its StartIcon and FloatLabel: Breakpoint.Sm on a phone. For a page's main action, in a PageHeader's PageHeaderActions or, as a ToolbarButton, in a Toolbar. With more than one floating at the same width, they share a speed dial, named by the actions' or the toolbar's FloatLabel; a header's last button, its main action, is the dial's first, nearest the thumb. Off by default.
FloatLabelstring? (computed)What it does, as the floating button's accessible name ("New invoice"). Defaults to the button's text; needed with FloatBelow when that isn't plain text.
StartIconIconData?An icon before the text.
Plus 17 item props and 4 common props.
ToolbarIconButton
An IconButton in a Toolbar or a ToolbarButtonGroup. In the "…" menu it's a menu item with its icon, its Label as text, and the same link, form post and OnClick. For a toggle, use ToolbarToggleButton.
Priorityint = 0Which items stay longest when there's no room: higher stays longer. Defaults to 0. Items with the same priority move into the menu from the middle of the toolbar outward.
When it moves into the "…" menu: ToolbarOverflow.Never for the main action, ToolbarOverflow.Always for what only the menu needs. Defaults to ToolbarOverflow.Auto.
Plus 17 item props and 4 common props.
ToolbarButtonGroup
A ButtonGroup in a Toolbar, holding ToolbarButtons and ToolbarIconButtons. It moves into the "…" menu as one, as a group named by its Label.
Priorityint = 0Which items stay longest when there's no room: higher stays longer. Defaults to 0. Items with the same priority move into the menu from the middle of the toolbar outward.
When it moves into the "…" menu: ToolbarOverflow.Never for the main action, ToolbarOverflow.Always for what only the menu needs. Defaults to ToolbarOverflow.Auto.
Plus 17 item props and 4 common props.
ToolbarSplitButton
A SplitButton in a Toolbar. In the "…" menu it's a submenu named by its MenuLabel, with the main action as its first item, then the same items; with MenuDisabled it's just the main action.
Priorityint = 0Which items stay longest when there's no room: higher stays longer. Defaults to 0. Items with the same priority move into the menu from the middle of the toolbar outward.
When it moves into the "…" menu: ToolbarOverflow.Never for the main action, ToolbarOverflow.Always for what only the menu needs. Defaults to ToolbarOverflow.Auto.
StartIconIconData?An icon before the main button's text.
Plus 17 item props and 4 common props.
ToolbarItem
Anything that isn't a toolbar control, in a Toolbar: a search field, a SegmentedControl, a Tooltip around a button. Give it a Width, so the widths without script allow for it, and MenuContent for what stands in for it in the "…" menu; without that, it stays in the bar.
Priorityint = 0Which items stay longest when there's no room: higher stays longer. Defaults to 0. Items with the same priority move into the menu from the middle of the toolbar outward.
When it moves into the "…" menu: ToolbarOverflow.Never for the main action, ToolbarOverflow.Always for what only the menu needs. Defaults to ToolbarOverflow.Auto. It can change by breakpoint: new() { Base = ToolbarOverflow.Always, Sm = ToolbarOverflow.Auto } is in the menu on a phone, and in the bar from 640px up while there's room.
Plus 17 item props and 4 common props.
Types (2)
Breakpoint
enumThe responsive breakpoints. Mobile first: a value at a breakpoint applies from that width upward.
| Value | Description |
|---|---|
Sm | 640px and wider. |
Md | 768px and wider. |
Lg | 1024px and wider. |
Xl | 1280px and wider. |
Xxl | 1536px and wider: for where an AppAside shows, and HiddenFrom/VisibleFrom. AppSidebar's and SiteNav's breakpoints, and responsive values ( |
ToolbarOverflow
enumWhen an item of a Toolbar moves into its "…" menu.
| Value | Description |
|---|---|
Auto | When there's no room for it, in order of |
Never | Never: it stays in the bar, such as the main action. |
Always | Always: it's only in the menu, such as Print or Version history. |