alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class ToolbarEvents

    Inheritance
    object
    ComponentBase
    ToolbarEvents
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Blazor.Navigations
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class ToolbarEvents : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender

    Constructors

    ToolbarEvents()

    Declaration
    public ToolbarEvents()

    Properties

    Clicked

    Triggers an event when clicking a SfToolbar element.

    Declaration
    [Parameter]
    public EventCallback<ClickEventArgs> Clicked { get; set; }
    Property Value
    Type Description
    EventCallback<ClickEventArgs>

    An event callback function.

    Remarks

    The event arguments contain information about the clicked element.

    Examples

    The following code example shows how to obtain the clicked element text in the Clicked event handler.

    <SfToolbar>
        <ToolbarEvents Clicked="ToolbarClicked"></ToolbarEvents>
        <ToolbarItems>
            <ToolbarItem Text="Cut" TooltipText="Cut"></ToolbarItem>
            <ToolbarItem Text="Copy" TooltipText="Copy"></ToolbarItem>
            <ToolbarItem Text="Paste" TooltipText="Paste"></ToolbarItem>
        </ToolbarItems>
    </SfToolbar>
    @code {
        public void ToolbarClicked(ClickEventArgs args)
        {
            string clickedText = args.Item.Text;
        }
    }

    Created

    Triggers an event after the SfToolbar component has finished rendering during initial loading.

    Declaration
    [Parameter]
    public EventCallback<object> Created { get; set; }
    Property Value
    Type Description
    EventCallback<object>

    An event callback function.

    Destroyed

    Triggers an event after the SfToolbar component is destroyed.

    Declaration
    [Parameter]
    public EventCallback<object> Destroyed { get; set; }
    Property Value
    Type Description
    EventCallback<object>

    An event callback function.

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    RenderTreeBuilder __builder
    Overrides
    ComponentBase.BuildRenderTree(RenderTreeBuilder)

    OnInitializedAsync()

    Method invoked when the component is ready to start.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    Task

    A System.Threading.Tasks.Task representing any asynchronous operation.

    Overrides
    ComponentBase.OnInitializedAsync()

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved