alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Enum ButtonType

    Defines the button types available in the Toast notification component.

    Namespace: Syncfusion.Blazor.Notifications
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public enum ButtonType
    Remarks

    This enumeration specifies the different types of buttons that can be used within Toast notifications. Each button type corresponds to standard HTML button types and affects the button's behavior and styling.

    Examples

    Usage of different button types in a Toast notification:

    <SfToast>
        <ToastButtons>
            <ToastButton Content="OK" Type="ButtonType.Button" />
            <ToastButton Content="Submit" Type="ButtonType.Submit" />
            <ToastButton Content="Reset" Type="ButtonType.Reset" />
        </ToastButtons>
    </SfToast>

    Fields

    Name Description
    Button

    Specifies a standard button type that performs custom actions when clicked.

    Reset

    Specifies a reset button type that clears or resets form data when clicked.

    Submit

    Specifies a submit button type that submits form data when clicked.

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