alexa
menu

Blazor Toolkit

    Show / Hide Table of Contents

    Class ButtonType

    Defines the button types for HTML button element behavior.

    Inheritance
    System.Object
    ButtonType
    Namespace: Syncfusion.Blazor.Toolkit
    Assembly: Syncfusion.Blazor.Toolkit.dll
    Syntax
    public sealed class ButtonType : Enum
    Remarks

    This enumeration allows you to specify how the button interacts with forms. Use these types to control form submission, reset, or default button behavior.

    Examples

    The following example demonstrates how to use button types:

    <SfButton Type="ButtonType.Submit" Content="Submit Form" />

    Fields

    Button

    Specifies that the button is a standard button that does not interact with forms.

    Declaration
    public const ButtonType Button
    Field Value
    Type
    ButtonType
    Remarks

    This is the default button type and won't trigger form submission or reset.

    Reset

    Specifies that the button resets all form fields to their initial values when clicked.

    Declaration
    public const ButtonType Reset
    Field Value
    Type
    ButtonType
    Remarks

    Use this type to clear form fields back to their default state.

    Submit

    Specifies that the button submits the form when clicked.

    Declaration
    public const ButtonType Submit
    Field Value
    Type
    ButtonType
    Remarks

    Use this type to trigger form validation and submission.

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