Class BOBAvatarGroup
- Namespace
- BlazOrbit.Components
- Assembly
- BlazOrbit.dll
[GenerateComponentInfo]
public class BOBAvatarGroup : BOBComponentBase, IHasSize
- Inheritance
-
objectComponentBaseBOBAvatarGroup
- Implements
- Inherited Members
Constructors
BOBAvatarGroup()
public BOBAvatarGroup()
Properties
AriaLabel
Aria-label for the group container.
[Parameter]
public string? AriaLabel { get; set; }
Property Value
- string
ChildContent
Avatar children. Items past MaxVisible are hidden via CSS.
[Parameter]
public RenderFragment? ChildContent { get; set; }
Property Value
- RenderFragment
MaxVisible
Maximum number of avatars to render before hiding the rest. Defaults to 5.
[Parameter]
public int MaxVisible { get; set; }
Property Value
- int
RegisteredCount
Effective total used to derive the overflow count. Returns TotalOverride when supplied, otherwise the count of registered BOBAvatar children.
public int RegisteredCount { get; }
Property Value
- int
Size
Visual size of the group (applied via CSS scoped attributes; children pick their own).
[Parameter]
public BOBSize Size { get; set; }
Property Value
TotalOverride
Total number of avatars represented (visible + hidden). When set, takes precedence over the auto-derived count from registered children — useful when the data source is larger than what's actually rendered (e.g. virtualised lists or pre-truncated arrays). When null, the badge reflects the count of nested BOBAvatar children minus MaxVisible.
[Parameter]
public int? TotalOverride { get; set; }
Property Value
- int?
Methods
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder.
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builderRenderTreeBuilder