Class ButtonType
Specifies the type attribute for a button in the SfDialog, defining its default behavior.
Inheritance
System.Object
ButtonType
Namespace: Syncfusion.Blazor.Popups
Assembly: Syncfusion.Blazor.dll
Syntax
public sealed class ButtonType : Enum
Remarks
This enumeration corresponds to the standard HTML button type attribute and is particularly useful when the dialog contains a form.
Fields
Button
The button is a standard clickable button with no default behavior. This is the default value.
Declaration
public const ButtonType Button
Field Value
| Type |
|---|
| ButtonType |
Remarks
Renders a button with the HTML attribute
<button type="button">.
Reset
The button resets all form controls to their initial values.
Declaration
public const ButtonType Reset
Field Value
| Type |
|---|
| ButtonType |
Remarks
Renders a button with the HTML attribute
<button type="reset">. This is only effective for controls inside a <form> element.
Submit
The button submits the form data to the server.
Declaration
public const ButtonType Submit
Field Value
| Type |
|---|
| ButtonType |
Remarks
Renders a button with the HTML attribute
<button type="submit">. When clicked, it triggers the form's submit action.