Class RadzenBadge
RadzenBadge component.
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenBadge : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Examples
<RadzenBadge BadgeStyle="BadgeStyle.Primary" Text="Primary" />
Constructors
RadzenBadge()
RadzenBadge component.
Declaration
public RadzenBadge()
Examples
<RadzenBadge BadgeStyle="BadgeStyle.Primary" Text="Primary" />
Properties
BadgeStyle
Gets or sets the badge style.
Declaration
[Parameter]
public BadgeStyle BadgeStyle { get; set; }
Property Value
Type | Description |
---|---|
BadgeStyle | The badge style. |
ChildContent
Gets or sets the child content.
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment | The child content. |
IsPill
Gets or sets a value indicating whether this instance is pill.
Declaration
[Parameter]
public bool IsPill { get; set; }
Property Value
Type | Description |
---|---|
bool |
|
Shade
Gets or sets the badge shade color.
Declaration
[Parameter]
public Shade Shade { get; set; }
Property Value
Type | Description |
---|---|
Shade | The badge shade color. |
Text
Gets or sets the text.
Declaration
[Parameter]
public string Text { get; set; }
Property Value
Type | Description |
---|---|
string | The text. |
Variant
Gets or sets the badge variant.
Declaration
[Parameter]
public Variant Variant { get; set; }
Property Value
Type | Description |
---|---|
Variant | The badge variant. |
Methods
BuildRenderTree(RenderTreeBuilder)
RadzenBadge component.
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
RenderTreeBuilder | __builder |
Overrides
GetComponentCssClass()
Gets the component CSS class.
Declaration
protected override string GetComponentCssClass()
Returns
Type | Description |
---|---|
string |