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