menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ButtonGroupButton - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ButtonGroupButton

    Button Group Button component is creates a button component which is a graphical user interface that helps to triggers an event on its click action. It can contain a text, an icon, svg or both.

    Inheritance
    System.Object
    SfBaseComponent
    ButtonGroupButton
    Inherited Members
    SfBaseComponent.Dispose()
    SfBaseComponent.Dispose(Boolean)
    SfBaseComponent.OnObservableChange(String, Object, Boolean, NotifyCollectionChangedEventArgs)
    Namespace: Syncfusion.Blazor.SplitButtons
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class ButtonGroupButton : SfBaseComponent
    Remarks

    The button content is either by specifying Content property or by specifying content within ButtonGroupButton tag directive.

    Constructors

    ButtonGroupButton()

    Declaration
    public ButtonGroupButton()

    Properties

    Content

    Gets or sets a value that indicates the content of button.

    Declaration
    public string Content { get; set; }
    Property Value
    Type Description
    System.String

    Accepts a string value. The default value is String.Empty.

    Remarks

    Set child content within ButtonGroupButton tag directive, to render as HTML content.

    CssClass

    Gets or sets a value that indicates the CSS class string to customize the appearance of button.

    Declaration
    public string CssClass { get; set; }
    Property Value
    Type Description
    System.String

    Accepts a CSS class string separated by space to customize the appearance of button. The default value is String.Empty.

    Disabled

    Gets or sets whether the button is disabled or not.

    Declaration
    public bool Disabled { get; set; }
    Property Value
    Type Description
    System.Boolean

    true, if the button component is disabled. The default value is false.

    IconCss

    Gets or sets a value that indicates the CSS class string to include an icon or image for the button.

    Declaration
    public string IconCss { get; set; }
    Property Value
    Type Description
    System.String

    Accepts a CSS class string separated by space to include an icon or image for the button. The default value is String.Empty.

    IconPosition

    Gets or sets a value that indicates how to display icons in the button component.

    Declaration
    public IconPosition IconPosition { get; set; }
    Property Value
    Type Description
    IconPosition

    One of the IconPosition enumeration. The default value is Left

    Remarks

    If the IconPosition is Left, the icon will be placed left to the content of the button. If the IconPosition is Right, the icon will be placed right to the content of the button. If the IconPosition is Top, the icon will be placed above the content of the button. If the IconPosition is Bottom, the icon will be placed below the content of the button.

    IsPrimary

    Gets or sets whether the primary style is enabled for button component.

    Declaration
    public bool IsPrimary { get; set; }
    Property Value
    Type Description
    System.Boolean

    true, if the primary style is enabled for button component. The default value is false.

    IsToggle

    Gets or sets whether the toggle option is enabled for button component.

    Declaration
    public bool IsToggle { get; set; }
    Property Value
    Type Description
    System.Boolean

    true, if the toggle option is enabled for button component. The default value is false.

    Name

    Gets or sets a value that indicates the name of the component.

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    System.String

    Accepts a string value. The default value is String.Empty.

    Remarks

    The Name property is used to set the name attribute of input element.

    Selected

    Gets or sets whether the component is selected or not.

    Declaration
    public bool Selected { get; set; }
    Property Value
    Type Description
    System.Boolean

    true, if the component is selected. The default value is false.

    Value

    Gets or sets a value that indicates the value of the component.

    Declaration
    public string Value { get; set; }
    Property Value
    Type Description
    System.String

    Accepts a string value. The default value is String.Empty.

    Remarks

    The Value property is used to set the value attribute of input element.

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder

    OnAfterRenderAsync(Boolean)

    Declaration
    protected override Task OnAfterRenderAsync(bool firstRender)
    Parameters
    Type Name Description
    System.Boolean firstRender
    Returns
    Type
    System.Threading.Tasks.Task
    Overrides
    SfBaseComponent.OnAfterRenderAsync(Boolean)

    OnInitializedAsync()

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type
    System.Threading.Tasks.Task
    Overrides
    SfBaseComponent.OnInitializedAsync()

    OnParametersSetAsync()

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type
    System.Threading.Tasks.Task

    UpdateButtonState(Boolean)

    Declaration
    protected Task UpdateButtonState(bool state)
    Parameters
    Type Name Description
    System.Boolean state
    Returns
    Type
    System.Threading.Tasks.Task
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved