Class HeadlessButton
Inheritance
HeadlessButton
Assembly: Neon.Tailwind.dll
public class HeadlessButton : ComponentBase
Fields
Declaration
protected HtmlElement buttonElement
Field Value
Properties
Declaration
[Parameter(CaptureUnmatchedValues = true)]
public IReadOnlyDictionary<string, object> AdditionalAttributes { get; set; }
Property Value
Declaration
[Parameter]
public string AriaLabel { get; set; }
Property Value
ChildContent
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Declaration
[Parameter]
public bool IsEnabled { get; set; }
Property Value
Declaration
[Parameter]
public bool IsVisible { get; set; }
Property Value
Declaration
[Parameter]
public EventCallback OnClick { get; set; }
Property Value
Declaration
[Parameter]
public string TagName { get; set; }
Property Value
Declaration
[Parameter]
public string Type { get; set; }
Property Value
Declaration
[Inject]
protected IJSRuntime jsRuntime { get; set; }
Property Value
Methods
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.
|
Declaration
protected Task HandleClick(MouseEventArgs e)
Parameters
Returns
Declaration
[JSInvokable]
public Task HandleKeyUp(KeyboardEventArgs eventArgs)
Parameters
Returns
Method invoked after each time the component has been rendered interactively and the UI has finished
updating (for example, after elements have been added to the browser DOM). Any ElementReference
fields will be populated by the time this runs.
This method is not invoked during prerendering or server-side rendering, because those processes
are not attached to any live browser DOM and are already complete before the DOM is updated.
Note that the component does not automatically re-render after the completion of any returned Task,
because that would cause an infinite render loop.
Declaration
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
Type |
Name |
Description |
bool |
firstRender |
Set to true if this is the first time OnAfterRender(bool) has been invoked
on this component instance; otherwise false .
|
Returns
Type |
Description |
Task |
A Task representing any asynchronous operation.
|
Overrides
Method invoked when the component is ready to start, having received its
initial parameters from its parent in the render tree.
Declaration
protected override void OnInitialized()
Overrides