Class HeadlessListbox<TValue>
Inheritance
HeadlessListbox<TValue>
Assembly: Neon.Tailwind.dll
Syntax
public class HeadlessListbox<TValue>
Type Parameters
Constructors
HeadlessListbox()
Declaration
Properties
ActiveOptionId
Declaration
public string ActiveOptionId { get; }
Property Value
Declaration
public string ButtonElementId { get; }
Property Value
ChildContent
Declaration
[Parameter]
public RenderFragment<HeadlessListbox<TValue>> ChildContent { get; set; }
Property Value
CurrentValue
Declaration
public TValue CurrentValue { get; set; }
Property Value
DebouceTimeout
Declaration
[Parameter]
public int DebouceTimeout { get; set; }
Property Value
LabelId
Declaration
public string LabelId { get; }
Property Value
OnClose
Declaration
[Parameter]
public EventCallback OnClose { get; set; }
Property Value
OnOpen
Declaration
[Parameter]
public EventCallback OnOpen { get; set; }
Property Value
OptionsElementId
Declaration
public string OptionsElementId { get; }
Property Value
SearchQuery
Declaration
public string SearchQuery { get; }
Property Value
State
Declaration
public ListboxState State { get; protected set; }
Property Value
Value
Declaration
[Parameter]
public TValue Value { get; set; }
Property Value
ValueChanged
Declaration
[Parameter]
public EventCallback<TValue> ValueChanged { get; set; }
Property Value
Methods
Declaration
public ValueTask ButtonFocusAsync()
Returns
Close(bool)
Declaration
public Task Close(bool suppressFocus = false)
Parameters
Type |
Name |
Description |
bool |
suppressFocus |
|
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
GoToOption(HeadlessListboxOption<TValue>)
Declaration
public void GoToOption(HeadlessListboxOption<TValue> option)
Parameters
GoToOption(ListboxFocus)
Declaration
public void GoToOption(ListboxFocus focus)
Parameters
HandleClickOff()
Declaration
public Task HandleClickOff()
Returns
IsActiveOption(HeadlessListboxOption<TValue>)
Declaration
public bool IsActiveOption(HeadlessListboxOption<TValue> option)
Parameters
Returns
OnAfterRenderAsync(bool)
Declaration
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
Type |
Name |
Description |
bool |
firstRender |
|
Returns
OnInitialized()
Declaration
protected override void OnInitialized()
Open()
Declaration
Returns
OptionsFocusAsync()
Declaration
public ValueTask OptionsFocusAsync()
Returns
Declaration
public void RegisterButton(HeadlessListboxButton<TValue> button)
Parameters
RegisterOption(HeadlessListboxOption<TValue>)
Declaration
public void RegisterOption(HeadlessListboxOption<TValue> option)
Parameters
RegisterOptions(HeadlessListboxOptions<TValue>)
Declaration
public void RegisterOptions(HeadlessListboxOptions<TValue> options)
Parameters
Registerlabel(HeadlessListboxLabel<TValue>)
Declaration
public void Registerlabel(HeadlessListboxLabel<TValue> label)
Parameters
SearchAsync(string)
Declaration
public Task SearchAsync(string key)
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
SetActiveAsValue()
Declaration
public void SetActiveAsValue()
SetValue(TValue)
Declaration
public Task SetValue(TValue value)
Parameters
Type |
Name |
Description |
TValue |
value |
|
Returns
Toggle()
Declaration
Returns
UnregisterOption(HeadlessListboxOption<TValue>)
Declaration
public void UnregisterOption(HeadlessListboxOption<TValue> option)
Parameters