Modal Class

Use Bootstrap’s JavaScript modal plugin to add dialogs to your site for lightboxes, user notifications, or completely custom content.
For more information, visit the Bootstrap Modal documentation.

Definition

Namespace: BlazorBootstrap
Assembly: BlazorBootstrap (in BlazorBootstrap.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public sealed class Modal : BlazorBootstrapComponentBase
Inheritance
Object    ComponentBase    BlazorBootstrapComponentBase    Modal

Constructors

ModalInitializes a new instance of the Modal class

Properties

BodyTemplate Gets or sets the body template.
FooterTemplate Gets or sets the footer template.
HeaderIconColor Gets or sets the header's icon color.
HeaderIconName Gets or sets the header icon.
HeaderTemplate Gets or sets the header template.
IsScrollable If , scroll will be enabled on the modal body.
IsVerticallyCentered If , shows the modal vertically in the center.
Message Gets or sets the message.
ModalType Gets or sets the modal type.
Size Gets or sets the modal size.
Title Gets or sets the modal header title.

Methods

HideAsync Hides a modal.
SetParametersAsync Parameters are loaded manually for sake of performance; if we were to use System.Reflection magic, it would hurt performance if components were used in large numbers.
(Overrides ComponentBaseSetParametersAsync(ParameterView))
ShowAsync Opens a modal.

See Also