New to Telerik UI for BlazorStart a free 30-day trial

A responsive toolbar that hosts buttons, toggle buttons, templates, and separators with overflow and optional scrolling. Define items in ChildContent; configure size/fill via Size and FillMode; set overflow behavior with ToolBarOverflowMode through OverflowMode (Menu/Section/Scroll/None). For scrollable toolbars, control buttons with ScrollButtonsVisibility and ScrollButtonsPosition. Accessibility attributes: AriaLabel, AriaControls, and roving TabIndex. Children: ToolBarButtonGroup, ToolBarButton, ToolBarToggleButton, ToolBarSpacer, ToolBarSeparator.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

C#
public class TelerikToolBar : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentTelerikToolBar

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members BaseComponent.ShouldRender()BaseComponent.OnInitializedAsync()BaseComponent.Dispose()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.InvokeVoidAsyncWithoutAwait(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.OnInitialized()ComponentBase.OnParametersSet()ComponentBase.OnParametersSetAsync()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)ComponentBase.SetParametersAsync(ParameterView)...

Constructors

C#
public TelerikToolBar()

Properties

[Accessibility] Defines the aria-controls attribute of the toolbar.

C#
[Parameter]
public string AriaControls { get; set; }

[Accessibility] Defines the aria-label attribute of the toolbar.

C#
[Parameter]
public string AriaLabel { get; set; }
C#
[Parameter]
public RenderFragment ChildContent { get; set; }

Defines the FillMode of the toolbar.

C#
[Parameter]
public string FillMode { get; set; }

Defines how the items of the ToolBar overflow ToolBarOverflowMode.

C#
[Parameter]
public ToolBarOverflowMode OverflowMode { get; set; }
C#
[CascadingParameter(Name = "RenderComponentClass")]
public bool RenderComponentClass { get; set; }
C#
[CascadingParameter(Name = "RenderDivWrappers")]
public bool RenderDivWrappers { get; set; }

Specifies the position of the buttons when the ToolBar is Scrollable. Default value is Split.

C#
[Parameter]
public ToolBarScrollButtonsPosition ScrollButtonsPosition { get; set; }

Specifies the visibility of the buttons when the ToolBar is Scrollable. Default value is Auto.

C#
[Parameter]
public ToolBarScrollButtonsVisibility ScrollButtonsVisibility { get; set; }

Defines the Size of the toolbar.

C#
[Parameter]
public string Size { get; set; }

[Accessibility] Defines the tabindex passed to the inner elements of the component. Toolbar implements a roving tabindex method for navigation.

C#
[Parameter]
public int TabIndex { get; set; }

Methods

C#
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters:__builderRenderTreeBuilder

Overrides: ComponentBase.BuildRenderTree(RenderTreeBuilder)

C#
public IEnumerable<int> GetSkippedOverflowItemIndexes()
Returns:

IEnumerable<int>

C#
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters:firstRenderboolReturns:

Task

Overrides: BaseComponent.OnAfterRenderAsync(bool)