ActionSheet
Since 0.1.0-alpha.24IzzyBlazor.ActionSheet in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.31 assembly
and its doc comments.
Properties (10)
Idstring?The id a DialogTrigger's For or a ?dialog= link opens it by. Generated when not set.
Titlestring?The heading, which names the sheet for screen readers: what the actions act on, such as a file's name.
Descriptionstring?A short line under the title, such as a file's size or a warning about what's undone.
ChildContentRenderFragment?The ActionSheetItems, in order. Cancel comes after them.
@bind-Openbool = falseWhether it is open. Use @bind-Open to follow changes on interactive pages.
ShowCancelbool = trueShows Cancel after the items. On by default.
CancelTextstring? (computed)Cancel's text. Defaults to "Cancel" (Cancel).
CloseOnBackdropbool = trueCloses the sheet on a tap outside it. On by default.
SizeDialogSize = DialogSize.MdThe width at most: DialogSize.Md (the default) is 40rem, Sm 24rem, Lg 48rem, Xl 64rem, Full the screen's. On phones it spans the screen.
Events (0)
No events.
Parts (1)
Components written inside ActionSheet, documented here with it.
ActionSheetItem
One action in an ActionSheet: a menu row, larger for a finger. It takes MenuItem's parameters, so it acts on static pages too: Href is a link, Submit posts the surrounding form (or Form="id"), and OnClick runs C# on interactive pages, after which the sheet closes.
Hrefstring?Makes the item a link to this URL.
Submitbool = falsePosts the surrounding form (or Form), optionally to FormAction.
Namestring?Posted as Name=Value when the item is chosen. Not action, method or target: a control with one of those names hides the form's own property, and Blazor's enhanced form handling then posts to the wrong address.
FormActionstring?Submits to this URL instead of the form's own action.
Formstring?The id of the form to submit, when the sheet is not inside it.
IconIconData?An icon before the text.
AccentAccent = Accent.NeutralDisabledbool = falseShows the item but stops it from being chosen.
ChildContentRenderFragment?The item's text.
OnClickEventCallback<MouseEventArgs>Runs on click on interactive pages; then the sheet closes.
Plus 4 common props.
Types (2)
Accent
classThe color of a control: buttons, badges, tags, banners, progress bars and menu items. Primary, Neutral and Danger are the roles; emphasis comes from the variant (solid, soft, outline, ghost, link), not from more colors. For one control in another color, use Of (any CSS color) or Token (a theme token); text on it is chosen for contrast.
| Member | Description |
|---|---|
Primary | The brand color, for the main action. |
Neutral | A quiet, gray action. |
Danger | A destructive action, such as Delete. |
Of(string css) | Any CSS color, such as |
Token(string name) | A theme token, such as |
From(Color color) | A |
DialogSize
enumThe width of a Dialog. A Drawer, or a dialog at the start or end edge, is narrower: Sm 20rem, Md 24rem, Lg 32rem, Xl 40rem.
| Value | Description |
|---|---|
Sm | 24rem. Confirmations. |
Md | 32rem (the default). |
Lg | 48rem. Forms with two columns. |
Xl | 64rem. Tables and previews. |
Full | The whole viewport. |