Inheritance
HeadlessMenuItems
Assembly: Neon.Tailwind.dll
public class HeadlessMenuItems : ComponentBase
Properties
Declaration
[Parameter(CaptureUnmatchedValues = true)]
public IReadOnlyDictionary<string, object> AdditionalAttributes { get; set; }
Property Value
Declaration
[CascadingParameter]
public HeadlessMenu CascadedMenu { get; set; }
Property Value
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Declaration
[Parameter]
public string Id { get; set; }
Property Value
Declaration
[Parameter]
public bool Static { get; set; }
Property Value
Declaration
[Parameter]
public string TagName { get; set; }
Property Value
Declaration
[CascadingParameter]
public Transition Transition { 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
public ValueTask FocusAsync()
Returns
HandleKeyDown(KeyboardEventArgs)
Declaration
public Task HandleKeyDown(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
Sets parameters supplied by the component's parent in the render tree.
Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
Returns
Type |
Description |
Task |
A Task that completes when the component has finished updating and rendering itself.
|
Overrides
Operators
Declaration
public static implicit operator ElementReference(HeadlessMenuItems element)
Parameters
Returns