Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class RadzenBadge

    RadzenBadge component.

    Inheritance
    object
    ComponentBase
    RadzenComponent
    RadzenBadge
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    RadzenComponent.OnMouseEnter()
    RadzenComponent.OnMouseLeave()
    RadzenComponent.OnContextMenu(MouseEventArgs)
    RadzenComponent.GetCssClass()
    RadzenComponent.GetId()
    RadzenComponent.Debounce(Func<Task>, int)
    RadzenComponent.OnInitialized()
    RadzenComponent.SetParametersAsync(ParameterView)
    RadzenComponent.OnAfterRenderAsync(bool)
    RadzenComponent.RaiseContextMenu(MouseEventArgs)
    RadzenComponent.RaiseMouseEnter()
    RadzenComponent.RaiseMouseLeave()
    RadzenComponent.Dispose()
    RadzenComponent.Attributes
    RadzenComponent.Element
    RadzenComponent.MouseEnter
    RadzenComponent.MouseLeave
    RadzenComponent.ContextMenu
    RadzenComponent.Culture
    RadzenComponent.DefaultCulture
    RadzenComponent.Style
    RadzenComponent.Visible
    RadzenComponent.UniqueID
    RadzenComponent.JSRuntime
    RadzenComponent.IsJSRuntimeAvailable
    RadzenComponent.Reference
    RadzenComponent.CurrentStyle
    ComponentBase.OnInitializedAsync()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.StateHasChanged()
    ComponentBase.ShouldRender()
    ComponentBase.OnAfterRender(bool)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.DispatchExceptionAsync(Exception)
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    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

    true if this instance is pill; otherwise, false.

    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
    ComponentBase.BuildRenderTree(RenderTreeBuilder)

    GetComponentCssClass()

    Gets the component CSS class.

    Declaration
    protected override string GetComponentCssClass()
    Returns
    Type Description
    string
    Overrides
    RadzenComponent.GetComponentCssClass()

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable

    Introducing Radzen Blazor Studio

    Radzen Blazor Studio is a software development environment that empowers developers to design, build and deploy Blazor applications without the traditional hurdles. Write less code and get more done.

    Learn More

    Download Now
    Download Now
    In This Article
    Back to top Radzen Blazor Components, © 2018-2025 Radzen. Source Code licensed under MIT