Class RadzenButton
RadzenButton component.
Implements
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenButton : RadzenComponent, IDisposable
Examples
<RadzenButton Click=@(args => Console.WriteLine("Button clicked")) Text="Button" />
Properties
BusyText
Gets or sets the busy text.
Declaration
public string BusyText { get; set; }
Property Value
Type | Description |
---|---|
System.String | The busy text. |
ButtonStyle
Gets or sets the button style.
Declaration
public ButtonStyle ButtonStyle { get; set; }
Property Value
Type | Description |
---|---|
ButtonStyle | The button style. |
ButtonType
Gets or sets the type of the button.
Declaration
public ButtonType ButtonType { get; set; }
Property Value
Type | Description |
---|---|
ButtonType | The type of the button. |
ChildContent
Gets or sets the child content.
Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment | The child content. |
Click
Gets or sets the click callback.
Declaration
public EventCallback<MouseEventArgs> Click { get; set; }
Property Value
Type | Description |
---|---|
EventCallback<MouseEventArgs> | The click callback. |
Disabled
Gets or sets a value indicating whether this RadzenButton is disabled.
Declaration
public bool Disabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Icon
Gets or sets the icon.
Declaration
public string Icon { get; set; }
Property Value
Type | Description |
---|---|
System.String | The icon. |
IconColor
Gets or sets the icon color.
Declaration
public string IconColor { get; set; }
Property Value
Type | Description |
---|---|
System.String | The icon color. |
Image
Gets or sets the image.
Declaration
public string Image { get; set; }
Property Value
Type | Description |
---|---|
System.String | The image. |
ImageAlternateText
Gets or sets the text.
Declaration
public string ImageAlternateText { get; set; }
Property Value
Type | Description |
---|---|
System.String | The text. |
IsBusy
Gets or sets a value indicating whether this instance busy text is shown.
Declaration
public bool IsBusy { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsDisabled
Gets a value indicating whether this instance is disabled.
Declaration
public bool IsDisabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Shade
Gets or sets the color shade of the button.
Declaration
public Shade Shade { get; set; }
Property Value
Type | Description |
---|---|
Shade | The color shade of the button. |
Size
Gets or sets the size.
Declaration
public ButtonSize Size { get; set; }
Property Value
Type | Description |
---|---|
ButtonSize | The size. |
TabIndex
Gets or sets the index of the tab.
Declaration
public int TabIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The index of the tab. |
Text
Gets or sets the text.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String | The text. |
Variant
Gets or sets the design variant of the button.
Declaration
public Variant Variant { get; set; }
Property Value
Type | Description |
---|---|
Variant | The variant of the button. |
Methods
GetComponentCssClass()
Gets the component CSS class.
Declaration
protected override string GetComponentCssClass()
Returns
Type | Description |
---|---|
System.String |
Overrides
OnClick(MouseEventArgs)
Handles the Click event.
Declaration
public virtual async Task OnClick(MouseEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
MouseEventArgs | args | The |
Returns
Type | Description |
---|---|
Task |