Class ListBox<T>
public class ListBox<T> : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, ISelectionWidget<T>, IWidget<T?>
Type Parameters
T
- Inheritance
-
ListBox<T>
- Implements
-
IWidget<T>
- Inherited Members
Properties
AttachBottom
[Parameter]
public bool AttachBottom { get; set; }
Property Value
AttachLeft
[Parameter]
public bool AttachLeft { get; set; }
Property Value
AttachRight
[Parameter]
public bool AttachRight { get; set; }
Property Value
AttachTop
[Parameter]
public bool AttachTop { get; set; }
Property Value
ChildContent
Format a choice for display as HTML. May be generated in constrained circumstances (for example, inside an <option> tag).
[Parameter]
public RenderFragment<T>? ChildContent { get; set; }
Property Value
FocusChanged
[Parameter]
public EventCallback<bool> FocusChanged { get; set; }
Property Value
HasChanges
If true, display a visual indication to the user.
[Parameter]
public bool HasChanges { get; set; }
Property Value
Options
Preset choices for Value.
[Parameter]
public IReadOnlyList<T> Options { get; set; }
Property Value
Splat
[Parameter(CaptureUnmatchedValues = true)]
public Dictionary<string, object>? Splat { get; set; }
Property Value
Validity
If set, display a visual indication to the user.
[Parameter]
public MessageLevel? Validity { get; set; }
Property Value
Value
Bindable typed value.
[Parameter]
public T? Value { get; set; }
Property Value
- T
ValueChanged
Triggered when data is entered by the user.
[Parameter]
public EventCallback<T?> ValueChanged { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied RenderTreeBuilder.
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builderRenderTreeBuilder