Class BOBNotificationBadge
- Namespace
- BlazOrbit.Components
- Assembly
- BlazOrbit.dll
[GenerateComponentInfo]
public class BOBNotificationBadge : BOBVariantComponentBase<BOBNotificationBadge, BOBBadgeVariant>, IVariantComponent<BOBBadgeVariant>, IVariantComponent, IHasSize, IHasColor, IHasBackgroundColor
- Inheritance
-
objectComponentBaseBOBNotificationBadge
- Implements
- Inherited Members
Constructors
BOBNotificationBadge()
public BOBNotificationBadge()
Properties
BackgroundColor
Background color. Accepts any valid CSS color value.
[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
BuiltInTemplates
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.
[Parameter]
public string? Color { get; set; }
Property Value
- string
DefaultVariant
Default variant used when no explicit variant is specified.
public override BOBBadgeVariant DefaultVariant { get; }
Property Value
Position
Position.
[Parameter]
public BadgePosition Position { get; set; }
Property Value
Shadow
Shadow style applied to the component.
[Parameter]
public ShadowStyle? Shadow { get; set; }
Property Value
Size
Visual size of the component.
[Parameter]
public BOBSize Size { get; set; }
Property Value
Methods
BuildComponentDataAttributes(Dictionary<string, object>)
Override this method to add component-specific data attributes. Called during attribute building process.
public override void BuildComponentDataAttributes(Dictionary<string, object> dataAttributes)
Parameters
dataAttributesDictionary<string, object>
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder.
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builderRenderTreeBuilder