Class BOBChipGroup<TValue>
- Namespace
- BlazOrbit.Components
- Assembly
- BlazOrbit.dll
[GenerateComponentInfo]
public class BOBChipGroup<TValue> : BOBComponentBase, IChipGroupContainer, IHasSize, IHasColor, IHasDisabled
Type Parameters
TValue
- Inheritance
-
objectComponentBaseBOBChipGroup<TValue>
- Implements
- Inherited Members
Constructors
BOBChipGroup()
public BOBChipGroup()
Properties
AriaLabel
Aria-label fallback when Label is empty.
[Parameter]
public string? AriaLabel { get; set; }
Property Value
- string
ChildContent
Chip definitions rendered inside the group. Each child should set a Value.
[Parameter]
public RenderFragment? ChildContent { get; set; }
Property Value
- RenderFragment
Color
Accent color forwarded to nested chips via the inline color slot.
[Parameter]
public string? Color { get; set; }
Property Value
- string
Disabled
When true, the entire group is non-interactive; cascades to nested chips.
[Parameter]
public bool Disabled { get; set; }
Property Value
- bool
HelperText
Helper text rendered below the chip row.
[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
Optional label rendered above the chip row.
[Parameter]
public string? Label { get; set; }
Property Value
- string
Mode
Selection cardinality. Defaults to Single.
[Parameter]
public ChipGroupSelectionMode Mode { get; set; }
Property Value
Required
Flags the group as required: renders the label asterisk, sets
aria-required="true" on the items container, and surfaces
aria-invalid="true" when no chip is selected. For full
Microsoft.AspNetCore.Components.Forms.EditContext-driven
validation (DataAnnotations, FluentValidation), wrap the group inside an
Microsoft.AspNetCore.Components.Forms.EditForm whose model carries
a property bound to SelectedValues; the consumer-side validator
then drives the message surface. A dedicated BOBChipGroupForm<TValue>
that hooks into BOBInputComponentBase directly is on the backlog.
[Parameter]
public bool Required { get; set; }
Property Value
- bool
SelectedValues
Currently selected values. Bind via @bind-SelectedValues. In
Single mode the list holds at most one item;
tapping the same chip again clears it.
[Parameter]
public IReadOnlyList<TValue>? SelectedValues { get; set; }
Property Value
- IReadOnlyList<TValue>
SelectedValuesChanged
Two-way binding companion for SelectedValues.
[Parameter]
public EventCallback<IReadOnlyList<TValue>> SelectedValuesChanged { get; set; }
Property Value
- EventCallback<IReadOnlyList<TValue>>
Size
Visual size cascaded into nested chips (chips may still override per-instance).
[Parameter]
public BOBSize Size { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder.
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builderRenderTreeBuilder