ConfirmDialog

This documentation provides a comprehensive reference for the ConfirmDialog component, guiding you through its configuration options.
Demos

Screenshot #

Blazor ConfirmDialog Component

ConfirmDialog Parameters #

Name Type Default Required Description Added Version
AdditionalAttributes Dictionary<string, object>? null Gets or sets additional attributes that will be applied to the component. 1.0.0
Class string? null Gets or sets the CSS class name(s) to apply to the component. 1.0.0
Id string? null Gets or sets the ID. If not set, a unique ID will be generated. 1.0.0
Style string? null Gets or sets the CSS style string that defines the inline styles for the component. 1.0.0

ConfirmDialog Methods #

Name Return type Description Added Version
ShowAsync(string title, string message1, ConfirmDialogOptions? confirmDialogOptions) Task<bool> Shows confirm dialog. 1.1.0
ShowAsync(string title, string message1, string message2, ConfirmDialogOptions? confirmDialogOptions) Task<bool> Shows confirm dialog. 1.1.0
ShowAsync(string title, Dictionary<string, object>? parameters, ConfirmDialogOptions? confirmDialogOptions) Task<bool> Shows confirm dialog. 1.1.0

ConfirmDialogOptions Properties #

Name Type Default Required Description Added Version
AutoFocusYesButton bool True Determines whether to focus on the yes button or not. 1.1.0
DialogCssClass string? null Additional CSS class for the dialog (div.modal-dialog element). 1.1.0
Dismissable bool True Adds a dismissable close button to the confirm dialog. 1.1.0
HeaderCssClass string? null Additional header CSS class (div.modal-header element). 1.1.0
IsScrollable bool False Allows confirm dialog body to be scrollable. 1.1.0
IsVerticallyCentered bool False Shows the confirm dialog vertically in the center of the page. 1.1.0
NoButtonColor ButtonColor Secondary Gets or sets the 'No' button color. 1.1.0
NoButtonText string No Gets or sets the 'No' button text. 1.1.0
Size DialogSize Regular Gets or sets the size of the modal dialog. 1.1.0
YesButtonColor ButtonColor Primary Gets or sets the 'Yes' button color. 1.1.0
YesButtonText string Yes Gets or sets the 'Yes' button text. 1.1.0

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 reload the page.