Class
ToolBarButtonBase

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
public abstract class ToolBarButtonBase : ToolBarItemBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IToolBarItem

Inheritance: objectComponentBaseBaseComponentToolBarItemBaseToolBarButtonBase

Derived Classes: ToolBarButtonToolBarToggleButton

Implements: IComponentIDisposableIHandleAfterRenderIHandleEventIToolBarItem

Inherited Members ToolBarItemBase.SetParametersAsync(ParameterView)ToolBarItemBase.OnAfterRenderAsync(bool)ToolBarItemBase.Dispose()ToolBarItemBase.VisibleBaseComponent.ShouldRender()BaseComponent.InitLocalizer()BaseComponent.ThrowIfParameterIsNull(object, string)BaseComponent.HaveOptionsChanged(IDictionary<string, object>, IDictionary<string, object>)BaseComponent.GetClassString(params string[])BaseComponent.InvokeAsync<T>(string, params object[])BaseComponent.InvokeAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidAsync(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidComponentMethodAsync(string, params object[])BaseComponent.InvokeComponentVoidMethodAsync(string, object)BaseComponent.InvokeDisposeAsync()BaseComponent.StateHasChanged()BaseComponent.RootComponentBaseComponent.ClassComponentBase.BuildRenderTree(RenderTreeBuilder)ComponentBase.OnInitialized()ComponentBase.OnParametersSet()ComponentBase.OnParametersSetAsync()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)

Constructors

ToolBarButtonBase()

Declaration

cs-api-definition
protected ToolBarButtonBase()

Properties

AriaDescribedBy

Sets aria-describedby attribute to the element.

Declaration

cs-api-definition
[Parameter]
public string AriaDescribedBy { get; set; }

Property Value

string

AriaLabel

Sets aria-label attribute to the element.

Declaration

cs-api-definition
[Parameter]
public string AriaLabel { get; set; }

Property Value

string

AriaLabelledBy

Sets aria-labelledby attribute to the element.

Declaration

cs-api-definition
[Parameter]
public string AriaLabelledBy { get; set; }

Property Value

string

ChildContent

Specifies the ChildContent of the item.

Declaration

cs-api-definition
[Parameter]
public RenderFragment ChildContent { get; set; }

Property Value

RenderFragment

Enabled

Specifies whether the item is enabled or not.

Declaration

cs-api-definition
[Parameter]
public bool Enabled { get; set; }

Property Value

bool

FillMode

Specifies the fill mode of the button. Default value is Solid.

Declaration

cs-api-definition
[Parameter]
public string FillMode { get; set; }

Property Value

string

Icon

Specifies an icon rendered in the item. You can use either a predefined Telerik Icon or a custom one. Refer to Icons - Documentation for more information on how icons work.

Declaration

cs-api-definition
[Parameter]
public object Icon { get; set; }

Property Value

object

IsIconButton

Specifies if the item contains an icon.

Declaration

cs-api-definition
[Parameter]
public bool IsIconButton { get; set; }

Property Value

bool

IsInsideButtonGroup

Declaration

cs-api-definition
[Parameter]
public bool IsInsideButtonGroup { get; set; }

Property Value

bool

OnClick

Triggers when the button is clicked.

Declaration

cs-api-definition
[Parameter]
public EventCallback<MouseEventArgs> OnClick { get; set; }

Property Value

EventCallback<MouseEventArgs>

Overflow

Specifies how the ToolBar item overflows. Default value is Auto.

Declaration

cs-api-definition
[Parameter]
public ToolBarItemOverflow Overflow { get; set; }

Property Value

ToolBarItemOverflow

OverflowText

Specifies the text of the item in the overflow popup. If not specified, it will fallback to the default item's text.

Declaration

cs-api-definition
[Parameter]
public string OverflowText { get; set; }

Property Value

string

Rounded

Specifies the roundness of the button. Default value is Medium.

Declaration

cs-api-definition
[Parameter]
public string Rounded { get; set; }

Property Value

string

ThemeColor

Specifies the theme color of the button. Default value is Base.

Declaration

cs-api-definition
[Parameter]
public string ThemeColor { get; set; }

Property Value

string

Title

Specifies the title of the item.

Declaration

cs-api-definition
[Parameter]
public string Title { get; set; }

Property Value

string

Methods

OnInitializedAsync()

Declaration

cs-api-definition
protected override Task OnInitializedAsync()

Returns

Task

Overrides ToolBarItemBase.OnInitializedAsync()