Class SfButtonGroup
A ButtonGroup is a container that groups a series of buttons on a single line. It has an optional radio button (single selection) and checkbox (multiple selection) behavior. It may contain DropDownButton or SplitButton component.
Inheritance
System.Object
Syncfusion.Blazor.SfBaseComponent
SfButtonGroup
Namespace: Syncfusion.Blazor.SplitButtons
Assembly: Syncfusion.Blazor.dll
Syntax
public class SfButtonGroup : SfBaseComponent
Constructors
SfButtonGroup()
Declaration
public SfButtonGroup()
Properties
Created
Triggers once the component rendering is completed.
Declaration
public EventCallback<object> Created { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<System.Object> |
CssClass
Defines class/multiple classes separated by a space in the buttongroup container element. The ButtonGroup types and size customizations can be achieved by using this property.
Declaration
public string CssClass { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Mode
Specifies the selection modes. The possible values are,
Default
: Default selection in the ButtonGroup.
Single
: Allows you to select a single button in the ButtonGroup.
Multiple
: Allows you to select more than one button in the ButtonGroup.
Declaration
public SelectionMode Mode { get; set; }
Property Value
Type | Description |
---|---|
SelectionMode |
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 | Description |
---|---|
System.Threading.Tasks.Task |
Overrides
Syncfusion.Blazor.SfBaseComponent.OnAfterRenderAsync(System.Boolean)