Table of Contents

Class BOBNotificationBadge

Namespace
BlazOrbit.Components
Assembly
BlazOrbit.dll
[GenerateComponentInfo]
public class BOBNotificationBadge : BOBVariantComponentBase<BOBNotificationBadge, BOBBadgeVariant>, IVariantComponent<BOBBadgeVariant>, IVariantComponent, IPureBuiltComponent, IBuiltComponent, IHasSize, IHasColor, IHasBackgroundColor
Inheritance
object
ComponentBase
BOBNotificationBadge
Implements
Inherited Members

Constructors

BOBNotificationBadge()

public BOBNotificationBadge()

Properties

BackgroundColor

Background color. Accepts any valid CSS color value, PaletteColor or BOBColor.

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

Property Value

string

BadgeContent

BadgeContent.

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

Property Value

RenderFragment

Border

Border style applied to the component.

[Parameter]
public BorderStyle? Border { get; set; }

Property Value

BorderStyle

BuiltInTemplates

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

protected override Dictionary<BOBBadgeVariant, Func<BOBNotificationBadge, RenderFragment>> BuiltInTemplates { get; }

Property Value

Dictionary<BOBBadgeVariant, Func<BOBNotificationBadge, RenderFragment>>

ChildContent

Content rendered inside the component.

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

Property Value

RenderFragment

Circular

Circular.

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

Property Value

bool

Color

Text or foreground color. Accepts any valid CSS color value, PaletteColor or BOBColor.

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

Property Value

string

DefaultVariant

Variant used when no Variant is supplied.

public override BOBBadgeVariant DefaultVariant { get; }

Property Value

BOBBadgeVariant

Position

Position.

[Parameter]
public BadgePosition Position { get; set; }

Property Value

BadgePosition

Shadow

Shadow style applied to the component.

[Parameter]
public ShadowStyle? Shadow { get; set; }

Property Value

ShadowStyle

Size

Visual size of the component.

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

Property Value

BOBSize

Methods

BuildComponentCssVariables(Dictionary<string, string>)

Contributes additional CSS custom properties to the inline style attribute. Keys that collide with framework-owned --bob-inline-* variables will be overwritten.

public void BuildComponentCssVariables(Dictionary<string, string> cssVariables)

Parameters

cssVariables Dictionary<string, string>

BuildComponentDataAttributes(Dictionary<string, object>)

Contributes additional data- attributes to the root element. Keys that collide with framework-owned data-bob- attributes will be overwritten.

public void BuildComponentDataAttributes(Dictionary<string, object> dataAttributes)

Parameters

dataAttributes Dictionary<string, object>

BuildRenderTree(RenderTreeBuilder)

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

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder