Skip to content
IzzyBlazor

Enter all results ↑ ↓ move Esc close

ActionSheet

Since 0.1.0-alpha.24
Offers a few actions on one thing in a sheet from the bottom, with Cancel last.

IzzyBlazor.ActionSheet in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.31 assembly and its doc comments.

Properties (10)

Idstring?Added in 0.1.0-alpha.24

The id a DialogTrigger's For or a ?dialog= link opens it by. Generated when not set.

Titlestring?Added in 0.1.0-alpha.24

The heading, which names the sheet for screen readers: what the actions act on, such as a file's name.

Descriptionstring?Added in 0.1.0-alpha.24

A short line under the title, such as a file's size or a warning about what's undone.

ChildContentRenderFragment?Added in 0.1.0-alpha.24

The ActionSheetItems, in order. Cancel comes after them.

@bind-Openbool = falseAdded in 0.1.0-alpha.24 @bind: Interactive only

Whether it is open. Use @bind-Open to follow changes on interactive pages.

ShowCancelbool = trueAdded in 0.1.0-alpha.24

Shows Cancel after the items. On by default.

CancelTextstring? (computed)Added in 0.1.0-alpha.24

Cancel's text. Defaults to "Cancel" (Cancel).

CloseOnBackdropbool = trueAdded in 0.1.0-alpha.24

Closes the sheet on a tap outside it. On by default.

SizeDialogSize = DialogSize.MdAdded in 0.1.0-alpha.24

The 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.

QueryKeystring? = "dialog"Added in 0.1.0-alpha.24

The query-string key that opens it from a link, as on Dialog. Defaults to dialog; null turns it off.

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?Added in 0.1.0-alpha.24

Makes the item a link to this URL.

Submitbool = falseAdded in 0.1.0-alpha.24

Posts the surrounding form (or Form), optionally to FormAction.

Namestring?Added in 0.1.0-alpha.24

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.

Valuestring?Added in 0.1.0-alpha.24

The value posted with Name.

FormActionstring?Added in 0.1.0-alpha.24

Submits to this URL instead of the form's own action.

Formstring?Added in 0.1.0-alpha.24

The id of the form to submit, when the sheet is not inside it.

IconIconData?Added in 0.1.0-alpha.24

An icon before the text.

AccentAccent = Accent.NeutralAdded in 0.1.0-alpha.24

The text color. Neutral (the default) is plain; use Danger for a destructive action. A custom color is used as text, mixed toward the text color so it stays readable.

Disabledbool = falseAdded in 0.1.0-alpha.24

Shows the item but stops it from being chosen.

ChildContentRenderFragment?Added in 0.1.0-alpha.24

The item's text.

OnClickEventCallback<MouseEventArgs>Added in 0.1.0-alpha.24Interactive only

Runs on click on interactive pages; then the sheet closes.

Types (2)

Accent

class

The 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.

Accent members
MemberDescription
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 "#0d9488". Text on it is black or white, whichever reads better.

Token(string name)

A theme token, such as "brand" for --ib-color-brand; text on it uses --ib-color-on-brand when the theme defines it.

From(Color color)

A Color as an accent, such as Color.Success.

DialogSize

enum

The 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.

DialogSize values
ValueDescription
Sm

24rem. Confirmations.

Md

32rem (the default).

Lg

48rem. Forms with two columns.

Xl

64rem. Tables and previews.

Full

The whole viewport.

Connection lost

Rejoining the server…