# Message Dialog

**Path:** Components/Popover

[Back to Documentation Index](http://rubicblazor.skyconis.com/docs.md)

---

Message Dialog

 Message dialogs are service-driven confirmation, alert, and verification flows built on top of RbDialogService .

 Show code

 Saved 

 Info 

 Last Result Index: 0 

 Meaning: - 

 Single Button

 Use this for simple acknowledgements like saved, completed, or informational status messages.
 Close result is 0 when dismissed and 1 when the visible button is clicked.

 Show code

 Saved 

 Info 

 Last Result Index: 0 

 Meaning: - 

 Decision Buttons

 Use one, two, or three buttons when the user must choose the next action.
 Result indices map to visible button order: 1..3 .

 Show code

 Two (Yes/No) 

 Three (Abort/Retry/Ignore) 

 Last Result Index: 0 

 Meaning: - 

 Prompt Verification

 Use DisplayMessageWithVerificationAsync(...) when a confirmation code must be entered before an action is allowed.

 Show code

 Message Verification 

 Last Result Index: 0 

 Meaning: - 

 Body Icon

 If you want the icon in the body instead of the title area, pass Title: null with Icon .

 Show code

 Body Icon SVG 

 Body Icon Class 

 Last Result Index: 0 

 Meaning: - 

 RTL Support

 Message dialogs opened from a local RTL container should preserve Arabic text flow and button order correctly.

 Show code

 رسالة معلومات 

 رسالة قرار 

 آخر نتيجة: - 

 API

 DisplayMessageAsync

 Shows a service-driven message dialog for alerts, confirmations, warnings, and multi-button decision flows.

 Parameters

 string Title 

 Title text shown at the top of the dialog. You can pass null to move icon emphasis into the body.

 string Message 

 Main message content displayed inside the dialog.

 string Icon = null

 Optional icon CSS class or SVG value used for visual emphasis.

 RbColor Color = RbColor.Default

 Visual tone of the dialog, such as default, warning, danger, or info.

 string Button1 = null

 Primary button label. If omitted, the default OK text is used.

 string Button2 = null

 Optional secondary button label.

 string Button3 = null

 Optional third button label.

 bool RequireResponse = false

 When true, the dialog requires an explicit button response instead of passive close behavior.

 bool ShowCancel = false

 When true, shows the standard Cancel action on the left. Cancel returns 0.

 Return

 Task<int> 

 Returns the selected button result. Typical values are 1 for Button1, 2 for Button2, 3 for Button3, and 0 for Cancel or passive dismissal.

 DisplayMessageWithVerificationAsync

 Adds verification-code input before completing an action.

 Parameters

 string Title 

 Title text displayed at the top of the verification message dialog.

 string Message 

 Main message content displayed inside the dialog.

 string VerificationCode 

 Required verification text the user must enter before the protected action is allowed.

 string Icon = null

 Optional icon CSS class or SVG value used for visual emphasis.

 RbColor Color = RbColor.Warning

 Visual tone of the dialog. Default is Warning.

 string Button1 = null

 Primary button label. If omitted, the default OK text is used.

 string Button2 = null

 Optional secondary button label.

 string Button3 = null

 Optional third button label.

 bool HideCancel = false

 When true, hides the standard Cancel action. Cancel is shown by default, does not require verification, and returns 0.

 Return

 Task<int> 

 All Button1-3 actions require the verification code. Returns 1, 2, or 3 for the selected action and 0 for Cancel or passive dismissal.

 ✕

 Contents
