Class EventHandlerComponentBase<TComponent>
Inheritance
EventHandlerComponentBase<TComponent>
Assembly: Neon.Tailwind.dll
Syntax
public abstract class EventHandlerComponentBase<TComponent> : ComponentBase where TComponent : EventHandlerComponentBase<TComponent>
Type Parameters
| Name |
Description |
| TComponent |
|
Constructors
EventHandlerComponentBase(string, string)
Declaration
protected EventHandlerComponentBase(string jsFileName, string handlerMethodName)
Parameters
| Type |
Name |
Description |
| string |
jsFileName |
|
| string |
handlerMethodName |
|
Fields
jsHandlerReference
Declaration
protected IJSObjectReference jsHandlerReference
Field Value
Properties
JSRuntime
Declaration
[Inject]
public IJSRuntime JSRuntime { get; set; }
Property Value
Methods
DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
Declaration
public ValueTask DisposeAsync()
Returns
| Type |
Description |
| ValueTask |
A task that represents the asynchronous dispose operation.
|
GetAdditionalInitializationParameters()
Declaration
protected virtual IEnumerable<object> GetAdditionalInitializationParameters()
Returns
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.
Declaration
protected override Task OnInitializedAsync()
Returns
| Type |
Description |
| Task |
A Task representing any asynchronous operation.
|
Overrides
RegisterElement(ElementReference)
Declaration
public Task RegisterElement(ElementReference element)
Parameters
Returns
UnregisterElement(ElementReference)
Declaration
public Task UnregisterElement(ElementReference element)
Parameters
Returns