Class InPlaceEditorCancelButton
Configures the properties for the In-place Editor's Cancel button.
Inherited Members
Namespace: Syncfusion.Blazor.InPlaceEditor
Assembly: Syncfusion.Blazor.dll
Syntax
public class InPlaceEditorCancelButton : InPlaceEditorButtton
Remarks
The InPlaceEditorCancelButton component is used to define the appearance and behavior of the cancel button within the Syncfusion.Blazor.InPlaceEditor. When clicked, it discards any changes and returns the editor to its display state. This component is a child of SfInPlaceEditor<TValue>.
Examples
<SfInPlaceEditor Mode="RenderMode.Inline" Value="Andrew">
<InPlaceEditorButtons>
<InPlaceEditorSubmitButton>Save</InPlaceEditorSubmitButton>
<InPlaceEditorCancelButton>Cancel</InPlaceEditorCancelButton>
</InPlaceEditorButtons>
</SfInPlaceEditor>
Constructors
InPlaceEditorCancelButton()
Declaration
public InPlaceEditorCancelButton()
Methods
Dispose()
Releases the unmanaged resources used by the InPlaceEditorCancelButton component.
Declaration
public virtual void Dispose()
Remarks
This method calls the virtual Dispose(Boolean) method to perform the actual resource cleanup.
Dispose(Boolean)
Releases the unmanaged resources used by the InPlaceEditorCancelButton and optionally releases the managed resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
|
Remarks
This override calls the base Dispose(bool) method and clears the reference to the parent component if disposing.
OnParametersSetAsync()
Method invoked when the component has received parameters from its parent component.
Declaration
protected override Task OnParametersSetAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing the asynchronous operation. |
Remarks
This method is part of the Blazor component lifecycle. It calls the base OnParametersSetAsync() and then updates the parent Syncfusion.Blazor.InPlaceEditor.Internal.IInPlaceEditor with a reference to this cancel button instance.