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.
Inherited Members
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 |
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 |
Disabled
Gets or sets whether the button is disabled or not.
Declaration
public bool Disabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
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 |
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 |
|
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 |
|
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 |
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 |
|
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 |
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
OnInitializedAsync()
Declaration
protected override Task OnInitializedAsync()
Returns
Type |
---|
System.Threading.Tasks.Task |
Overrides
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 |