Class RadzenBadge
RadzenBadge component.
public class RadzenBadge : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
- Inheritance
-
RadzenBadge
- Implements
- Inherited Members
Examples
<RadzenBadge BadgeStyle="BadgeStyle.Primary" Text="Primary" />
Constructors
RadzenBadge()
public RadzenBadge()
Properties
BadgeStyle
Gets or sets the badge style.
[Parameter]
public BadgeStyle BadgeStyle { get; set; }
Property Value
- BadgeStyle
The badge style.
ChildContent
Gets or sets the child content.
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
- RenderFragment
The child content.
IsPill
Gets or sets a value indicating whether this instance is pill.
[Parameter]
public bool IsPill { get; set; }
Property Value
- bool
true
if this instance is pill; otherwise,false
.
Shade
Gets or sets the badge shade color.
[Parameter]
public Shade Shade { get; set; }
Property Value
- Shade
The badge shade color.
Text
Gets or sets the text.
[Parameter]
public string Text { get; set; }
Property Value
- string
The text.
Variant
Gets or sets the badge variant.
[Parameter]
public Variant Variant { get; set; }
Property Value
- Variant
The badge variant.
Methods
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder
GetComponentCssClass()
protected override string GetComponentCssClass()