menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ToolbarItems - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ToolbarItems

    Represents a collection of ToolbarItem.

    Inheritance
    System.Object
    ToolbarItems
    Namespace: Syncfusion.Blazor.Navigations
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class ToolbarItems : OwningComponentBase
    Remarks

    To generate dynamic ToolbarItem based on collection, use @foreach within ToolbarItems tag directive.

    Examples

    In the below code example, a basic toolbar has been rendered using ToolbarItems tag directive.

    <SfToolbar>
        <ToolbarItems>
            <ToolbarItem Text="Cut"></ToolbarItem>
            <ToolbarItem Text="Copy"></ToolbarItem>
            <ToolbarItem Text="Paste"></ToolbarItem>
        </ToolbarItems>
    </SfToolbar>

    Constructors

    ToolbarItems()

    Declaration
    public ToolbarItems()

    Properties

    ChildContent

    Gets or sets the child content for the toolbar items.

    Declaration
    public RenderFragment ChildContent { get; set; }
    Property Value
    Type
    Microsoft.AspNetCore.Components.RenderFragment

    Items

    Gets or sets the list of toolbar items used to configure toolbar commands.

    Declaration
    public List<ToolbarItem> Items { get; set; }
    Property Value
    Type
    System.Collections.Generic.List<ToolbarItem>

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder

    Dispose(Boolean)

    Dispose unmanaged resources in the Syncfusion Blazor component.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    Boolean value to dispose the object.

    OnInitializedAsync()

    Method invoked when the component is ready to start.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

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

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved