Class DialogButtonOptions
Provides options to configure dialog buttons of built-in dialogs shown using ConfirmAsync(String, String, DialogOptions), AlertAsync(String, String, DialogOptions) and PromptAsync(String, String, DialogOptions) methods.
Inheritance
Namespace: Syncfusion.Blazor.Popups
Assembly: Syncfusion.Blazor.dll
Syntax
public class DialogButtonOptions : Object
Remarks
This class allows customization of button appearance and behavior, including text content, icons, and enabled state for both primary and cancel buttons in dialogs.
Constructors
DialogButtonOptions()
Declaration
public DialogButtonOptions()
Properties
Content
Gets or sets the text content of the button.
Declaration
public string Content { get; set; }
Property Value
Type | Description |
---|---|
System.String | A System.String representing the button text. The default value is |
Remarks
This property defines the text that will be displayed on the dialog button. If not specified, default button text will be used based on the dialog type.
Disabled
Gets or sets whether the button is enabled or disabled.
Declaration
public bool Disabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
When set to true
, the button will be disabled and cannot be clicked by the user. The button will appear grayed out in the UI.
IconCss
Gets or sets one or more CSS classes to include an icon or image for the button.
Declaration
public string IconCss { get; set; }
Property Value
Type | Description |
---|---|
System.String | A System.String representing CSS classes separated by spaces to include an icon or image for the button. The default value is |
Remarks
Buttons can include font icons and sprite images. Multiple CSS classes should be separated by spaces to apply multiple styling effects.