Class FormButtons
Inheritance
Namespace: Syncfusion.Blazor.DataForm
Assembly: Syncfusion.Blazor.dll
Syntax
public class FormButtons : OwningComponentBase
Constructors
FormButtons()
Declaration
public FormButtons()
Properties
ChildContent
Gets or sets the content for custom buttons to be rendered inside the Form component.
Declaration
public RenderFragment ChildContent { get; set; }
Property Value
| Type | Description |
|---|---|
| Microsoft.AspNetCore.Components.RenderFragment | A Microsoft.AspNetCore.Components.RenderFragment representing the button content placed in the form's footer. The default value is |
Remarks
Use this property to add custom action buttons such as Save, Reset, or Cancel to the SfDataForm component's UI.
Examples
Example for adding custom buttons in a SfDataForm:
<SfDataForm DataSource="@Model">
<FormButtons>
<button type="button">Save</button>
<button type="button">Reset</button>
</FormButtons>
</SfDataForm>
Methods
Dispose(Boolean)
Releases the unmanaged resources used by the FormButtons component and optionally disposes of the managed resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | disposing | A |
Remarks
This method is called by the Blazor runtime to perform resource cleanup when the component is disposed. When disposing is true, it ensures that all event handlers and references are removed to prevent memory leaks.
OnInitializedAsync()
Declaration
protected override Task OnInitializedAsync()
Returns
| Type |
|---|
| System.Threading.Tasks.Task |