EditForm Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Renders a form element that cascades an EditContext to descendants.
public ref class EditForm : Microsoft::AspNetCore::Components::ComponentBase
public class EditForm : Microsoft.AspNetCore.Components.ComponentBase
type EditForm = class
inherit ComponentBase
Public Class EditForm
Inherits ComponentBase
- Inheritance
Constructors
EditForm() |
Constructs an instance of EditForm. |
Properties
AdditionalAttributes |
Gets or sets a collection of additional attributes that will be applied to the created |
ChildContent |
Specifies the content to be rendered inside this EditForm. |
EditContext |
Supplies the edit context explicitly. If using this parameter, do not also supply Model, since the model value will be taken from the Model property. |
Model |
Specifies the top-level model object for the form. An edit context will be constructed for this model. If using this parameter, do not also supply a value for EditContext. |
OnInvalidSubmit |
A callback that will be invoked when the form is submitted and the EditContext is determined to be invalid. |
OnSubmit |
A callback that will be invoked when the form is submitted. If using this parameter, you are responsible for triggering any validation manually, e.g., by calling Validate(). |
OnValidSubmit |
A callback that will be invoked when the form is submitted and the EditContext is determined to be valid. |
Methods
BuildRenderTree(RenderTreeBuilder) |
Renders the component to the supplied RenderTreeBuilder. |
InvokeAsync(Action) |
Executes the supplied work item on the associated renderer's synchronization context. (Inherited from ComponentBase) |
InvokeAsync(Func<Task>) |
Executes the supplied work item on the associated renderer's synchronization context. (Inherited from ComponentBase) |
OnAfterRender(Boolean) |
Method invoked after each time the component has been rendered. (Inherited from ComponentBase) |
OnAfterRenderAsync(Boolean) |
Method invoked after each time the component has been rendered. Note that the component does not automatically re-render after the completion of any returned Task, because that would cause an infinite render loop. (Inherited from ComponentBase) |
OnInitialized() |
Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree. (Inherited from ComponentBase) |
OnInitializedAsync() |
Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree. Override this method if you will perform an asynchronous operation and want the component to refresh when that operation is completed. (Inherited from ComponentBase) |
OnParametersSet() |
Method invoked when the component has received parameters from its parent in the render tree, and the incoming values have been assigned to properties. |
OnParametersSetAsync() |
Method invoked when the component has received parameters from its parent in the render tree, and the incoming values have been assigned to properties. (Inherited from ComponentBase) |
SetParametersAsync(ParameterView) |
Sets parameters supplied by the component's parent in the render tree. (Inherited from ComponentBase) |
ShouldRender() |
Returns a flag to indicate whether the component should render. (Inherited from ComponentBase) |
StateHasChanged() |
Notifies the component that its state has changed. When applicable, this will cause the component to be re-rendered. (Inherited from ComponentBase) |
Explicit Interface Implementations
IComponent.Attach(RenderHandle) | (Inherited from ComponentBase) |
IHandleAfterRender.OnAfterRenderAsync() | (Inherited from ComponentBase) |
IHandleEvent.HandleEventAsync(EventCallbackWorkItem, Object) | (Inherited from ComponentBase) |