Table of Contents

Class BOBInputComponentBase<TValue, TComponent, TVariant>

Namespace
BlazOrbit.Abstractions
Assembly
BlazOrbit.Core.dll

Variant-aware input component base. Pairs BOBInputComponentBase<TValue> with the IVariantComponent<TVariant> template-resolution pipeline.

public abstract class BOBInputComponentBase<TValue, TComponent, TVariant> : BOBInputComponentBase<TValue>, IHasReadOnly, IHasDisabled, IHasRequired, IHasError, IVariantComponent<TVariant>, IVariantComponent where TComponent : BOBInputComponentBase<TValue, TComponent, TVariant> where TVariant : Variant

Type Parameters

TValue
TComponent
TVariant
Inheritance
object
ComponentBase
InputBase<TValue>
BOBInputComponentBase<TValue, TComponent, TVariant>
Implements
Derived
Inherited Members

Constructors

BOBInputComponentBase()

protected BOBInputComponentBase()

Properties

BuiltInTemplates

Compile-time map of variants to their built-in render templates.

protected abstract IReadOnlyDictionary<TVariant, Func<TComponent, RenderFragment>> BuiltInTemplates { get; }

Property Value

IReadOnlyDictionary<TVariant, Func<TComponent, RenderFragment>>

CurrentVariant

Effective variant for this render (parameter or DefaultVariant).

public TVariant CurrentVariant { get; }

Property Value

TVariant

DefaultVariant

Variant used when no Variant is supplied.

public abstract TVariant DefaultVariant { get; }

Property Value

TVariant

Variant

Selected variant. null falls back to DefaultVariant.

[Parameter]
public TVariant? Variant { get; set; }

Property Value

TVariant

Methods

BuildRenderTree(RenderTreeBuilder)

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

protected override void BuildRenderTree(RenderTreeBuilder builder)

Parameters

builder RenderTreeBuilder

A Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder that will receive the render output.

OnParametersSet()

Method invoked when the component has received parameters from its parent in the render tree, and the incoming values have been assigned to properties.

protected override void OnParametersSet()