Table of Contents

Class BOBSelect<TValue>

Namespace
BlazOrbit.Components
Assembly
BlazOrbit.dll
[GenerateComponentInfo]
public class BOBSelect<TValue> : BOBVariantComponentBase<BOBSelect<TValue>, BOBSelectVariant>, IVariantComponent<BOBSelectVariant>, IVariantComponent, IHasSize, IHasDisabled, IHasFullWidth, IHasColor, IHasBackgroundColor

Type Parameters

TValue
Inheritance
object
ComponentBase
BOBSelect<TValue>
Implements
Inherited Members

Constructors

BOBSelect()

public BOBSelect()

Properties

BackgroundColor

Background color. Accepts any valid CSS color value.

[Parameter]
public string? BackgroundColor { get; set; }

Property Value

string

BuiltInTemplates

protected override IReadOnlyDictionary<BOBSelectVariant, Func<BOBSelect<TValue>, RenderFragment>> BuiltInTemplates { get; }

Property Value

IReadOnlyDictionary<BOBSelectVariant, Func<BOBSelect<TValue>, RenderFragment>>

ChildContent

Markup that emits the option list (typically <option> elements).

[Parameter]
public RenderFragment? ChildContent { get; set; }

Property Value

RenderFragment

Color

Text color of the select. Accepts any valid CSS color value.

[Parameter]
public string? Color { get; set; }

Property Value

string

DefaultVariant

Default variant used when no explicit variant is specified.

public override BOBSelectVariant DefaultVariant { get; }

Property Value

BOBSelectVariant

Disabled

When true, the select is disabled and cannot receive focus or be opened.

[Parameter]
public bool Disabled { get; set; }

Property Value

bool

FullWidth

When true, the select stretches to the width of its parent.

[Parameter]
public bool FullWidth { get; set; }

Property Value

bool

HelperText

Helper text displayed below the component for additional context.

[Parameter]
public string? HelperText { get; set; }

Property Value

string

IsDisabled

Computed disabled state, combining Disabled with internal conditions such as loading.

public bool IsDisabled { get; }

Property Value

bool

Label

Floating label displayed above the select when it has a value or focus.

[Parameter]
public string? Label { get; set; }

Property Value

string

ReadOnly

When true, the value cannot be changed.

[Parameter]
public bool ReadOnly { get; set; }

Property Value

bool

Required

When true, the select is marked as required for validation.

[Parameter]
public bool Required { get; set; }

Property Value

bool

Size

Visual size of the select.

[Parameter]
public BOBSize Size { get; set; }

Property Value

BOBSize

Value

Currently selected value, two-way bound through @bind-Value.

[Parameter]
public TValue? Value { get; set; }

Property Value

TValue

ValueChanged

Raised when the value changes.

[Parameter]
public EventCallback<TValue?> ValueChanged { get; set; }

Property Value

EventCallback<TValue>

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder.

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder