alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class EditorComponent

    Represents a component that is rendered during the editing state of the Syncfusion.Blazor.InPlaceEditor.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    EditorComponent
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.BuildRenderTree(RenderTreeBuilder)
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    Namespace: Syncfusion.Blazor.InPlaceEditor
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class EditorComponent : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
    Remarks

    The EditorComponent is a child component of the Syncfusion.Blazor.InPlaceEditor and is responsible for hosting the content that becomes editable. It should contain the input components (e.g., SfTextBox, SfDatePicker) that the user interacts with to modify the value.

    Examples

    The following example demonstrates how to define a SfDatePicker within the EditorComponent.

    <SfInPlaceEditor>
        <EditorComponent>
            <SfDatePicker TValue="DateTime?" @bind-Value="@DateValue"></SfDatePicker>
        </EditorComponent>
    </SfInPlaceEditor>

    Constructors

    EditorComponent()

    Declaration
    public EditorComponent()

    Properties

    ChildContent

    Gets or sets the content to be displayed inside the Syncfusion.Blazor.InPlaceEditor when it is in an editable state.

    Declaration
    [Parameter]
    public RenderFragment ChildContent { get; set; }
    Property Value
    Type Description
    RenderFragment

    A RenderFragment that defines the editable user interface. The default value is null.

    Remarks

    This property is used to host input components like SfTextBox, SfDropDownList, or any other Blazor component that allows user input. The content of this template is displayed when the editor is in edit mode.

    Examples

    The following example demonstrates how to define a SfDatePicker within the EditorComponent.

    <SfInPlaceEditor>
        <EditorComponent>
            <SfDatePicker TValue="DateTime?" @bind-Value="@DateValue"></SfDatePicker>
        </EditorComponent>
    </SfInPlaceEditor>

    Methods

    Dispose()

    Releases all resources used by the EditorComponent.

    Declaration
    public virtual void Dispose()
    Remarks

    This method is the public entry point for disposing of the component and its resources.

    Dispose(bool)

    Releases the unmanaged resources used by the EditorComponent and optionally releases the managed resources.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    A bool that indicates whether the method call comes from a Dispose() method (its value is true) or from a finalizer (its value is false).

    Overrides
    OwningComponentBase.Dispose(bool)
    Remarks

    When disposing is true, this method cleans up references to the parent component and child content to prevent memory leaks.

    OnInitializedAsync()

    Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    Task

    A Task that represents the asynchronous initialization process.

    Overrides
    ComponentBase.OnInitializedAsync()
    Remarks

    This method registers the EditorComponent with its parent Syncfusion.Blazor.InPlaceEditor, enabling communication between them.

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved