menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DialogButtonOptions - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    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
    System.Object
    DialogButtonOptions
    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 String.Empty.

    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

    true if the button is disabled; otherwise false. The default value is false.

    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 String.Empty.

    Remarks

    Buttons can include font icons and sprite images. Multiple CSS classes should be separated by spaces to apply multiple styling effects.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved