Search results

Item Configuration in Blazor Toolbar component

28 Jul 2021 / 9 minutes to read

The Toolbar can be rendered by defining a list of items. Items can be constructed with the following built-in command types or item template.

  • Align
  • CssClass
  • Disabled
  • HtmlAttributes
  • Id
  • Overflow
  • PrefixIcon
  • ShowAlwaysInPopup
  • ShowTextOn
  • SuffixIcon
  • Template
  • Text
  • TooltipText
  • Type
  • Visible
  • Width

Align

It specifies the location for aligning Toolbar items on the Toolbar. Each command will be aligned according to the Align property. The possible values are:

  1. Left: To align commands to the left side of the Toolbar.
  2. Center: To align commands at the center of the Toolbar.
  3. Right: To align commands to the right side of the Toolbar.
Copied to clipboard
@using Syncfusion.Blazor.Navigations

<SfToolbar>
<ToolbarItems>
    <ToolbarItem Text="Home" Align="ItemAlign.Left"></ToolbarItem>
    <ToolbarItem Text="My Home Page" Align="ItemAlign.Center"></ToolbarItem>
    <ToolbarItem Text="Search" Align="ItemAlign.Right"></ToolbarItem>
    <ToolbarItem Text="Settings" Align="ItemAlign.Right"></ToolbarItem>
</ToolbarItems>
</SfToolbar>

Output be like the below.

Item Align

CssClass

Single or multiple CSS classes can be added to the Toolbar commands using the Toolbar item CssClass property. You can refer Set command customization for snippet and output.

Disabled

It specifies whether an item should be disabled or not. You can refer Enable/Disable Toolbar item for snippet and output.

HtmlAttributes

It is used to add custom attributes to Toolbar command. Supports HTML attributes such as style, class, etc. You can refer Set command customization for snippet and output.

Id

It specifies the unique ID to be used with button or input element of Toolbar items.

Copied to clipboard
@using Syncfusion.Blazor.Navigations

<SfToolbar>
<ToolbarItems>
    <ToolbarItem Id="Home" Text="Home" Align="ItemAlign.Left"></ToolbarItem>
    <ToolbarItem Text="My Home Page" Align="ItemAlign.Center"></ToolbarItem>
    <ToolbarItem Text="Search" Align="ItemAlign.Right"></ToolbarItem>
    <ToolbarItem Text="Settings" Align="ItemAlign.Right"></ToolbarItem>
</ToolbarItems>
</SfToolbar>

Output be like the below.

Item Id

Overflow

It Specifies the Toolbar command display area when an element’s content is too large to fit available space. This is applicable only to Popup mode. The possible values are:

  1. Show: Always shows the item as the primary priority on the Toolbar.
  2. Hide: Always shows the item as the secondary priority on the popup.
  3. None: No priority for display, and as per normal order moves to popup when content exceeds.

You can refer Responsive Mode for snippet and output.

PrefixIcon

It defines single/multiple classes separated by space used to specify an icon for the button. The icon will be positioned before the text content if text is available, otherwise the icon alone will be rendered. You can refer Customize the Scrolling distance for snippet and output.

ShowAlwaysInPopup

It defines the priority of items to display it in popup always. It allows to maintain toolbar item on popup always but it does not work for toolbar priority items.

Copied to clipboard
@using Syncfusion.Blazor.Navigations

<SfToolbar Width="300px" OverflowMode="OverflowMode.Popup">
<ToolbarItems>
    <ToolbarItem Text="Cut" ShowAlwaysInPopup=true TooltipText="Cut"></ToolbarItem>
    <ToolbarItem Text="Copy" TooltipText="Copy"></ToolbarItem>
    <ToolbarItem Text="Paste" TooltipText="Paste"></ToolbarItem>
    <ToolbarItem></ToolbarItem>
    <ToolbarItem Text="Bold" TooltipText="Bold"></ToolbarItem>
    <ToolbarItem Text="Underline" TooltipText="Underline"></ToolbarItem>
    <ToolbarItem Text="Italic" TooltipText="Italic"></ToolbarItem>
    <ToolbarItem Text="Color Picker" TooltipText="Color-Picker"></ToolbarItem>
    <ToolbarItem></ToolbarItem>
    <ToolbarItem Text="Align Left" TooltipText="Align-Left"></ToolbarItem>
    <ToolbarItem Text="Align Right" TooltipText="Align-Right"></ToolbarItem>
    <ToolbarItem Text="Align Center" TooltipText="Align-Center"></ToolbarItem>
    <ToolbarItem Text="Align Justify" TooltipText="Align-Justify"></ToolbarItem>
</ToolbarItems>
</SfToolbar>

Output be like the below.

Item ShowAlwaysInPopup

ShowTextOn

It specifies where the button text will be displayed on popup mode of the Toolbar. The possible values are:

  1. Toolbar: Text will be displayed on Toolbar only.
  2. Overflow: Text will be displayed only when content overflows to popup.
  3. Both: Text will be displayed on popup and Toolbar.

You can refer Responsive Mode for snippet and output.

SuffixIcon

It defines single/multiple classes separated by space used to specify an icon for the button. The icon will be positioned after the text content if text is available.

Copied to clipboard
@using Syncfusion.Blazor.Navigations

<SfToolbar Width="600">
<ToolbarItems>
    <ToolbarItem SuffixIcon="e-cut-icon tb-icons" Text="Cut"></ToolbarItem>
    <ToolbarItem SuffixIcon="e-copy-icon tb-icons" Text="Copy"></ToolbarItem>
    <ToolbarItem SuffixIcon="e-paste-icon tb-icons" Text="Paste"></ToolbarItem>
    <ToolbarItem Type="ItemType.Separator"></ToolbarItem>
    <ToolbarItem SuffixIcon="e-bold-icon tb-icons" Text="Bold"></ToolbarItem>
    <ToolbarItem SuffixIcon="e-underline-icon tb-icons" Text="Underline"></ToolbarItem>
    <ToolbarItem SuffixIcon="e-italic-icon tb-icons" Text="Italic"></ToolbarItem>
    <ToolbarItem SuffixIcon="e-color-icon tb-icons" Text="Color-Picker"></ToolbarItem>
    <ToolbarItem Type="ItemType.Separator"></ToolbarItem>
    <ToolbarItem SuffixIcon="e-bullets-icon tb-icons" Text="Bullets"></ToolbarItem>
    <ToolbarItem SuffixIcon="e-numbering-icon tb-icons" Text="Numbering"></ToolbarItem>
    <ToolbarItem Type="ItemType.Separator"></ToolbarItem>
    <ToolbarItem SuffixIcon="e-ascending-icon tb-icons" Text="Sort A - Z"></ToolbarItem>
    <ToolbarItem SuffixIcon="e-descending-icon tb-icons" Text="Sort Z - A"></ToolbarItem>
    <ToolbarItem Type="ItemType.Separator"></ToolbarItem>
    <ToolbarItem SuffixIcon="e-upload-icon tb-icons" Text="Upload"></ToolbarItem>
    <ToolbarItem SuffixIcon="e-download-icon tb-icons" Text="Download"></ToolbarItem>
    <ToolbarItem Type="ItemType.Separator"></ToolbarItem>
    <ToolbarItem SuffixIcon="e-indent-icon tb-icons" Text="Text Indent"></ToolbarItem>
    <ToolbarItem SuffixIcon="e-outdent-icon tb-icons" Text="Text Outdent"></ToolbarItem>
    <ToolbarItem Type="ItemType.Separator"></ToolbarItem>
    <ToolbarItem SuffixIcon="e-clear-icon tb-icons" Text="Clear"></ToolbarItem>
    <ToolbarItem SuffixIcon="e-reload-icon tb-icons" Text="Reload"></ToolbarItem>
    <ToolbarItem SuffixIcon="e-export-icon tb-icons" Text="Export"></ToolbarItem>
</ToolbarItems>
</SfToolbar>

<style>
@@font-face {
    font-family: 'Material_toolbar';
    src: url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAAKAIAAAwAgT1MvMj1tShMAAAEoAAAAVmNtYXDoMOjqAAACDAAAAHhnbHlmIuy19QAAAswAACNMaGVhZA6okZMAAADQAAAANmhoZWEIUQQkAAAArAAAACRobXR4jAAAAAAAAYAAAACMbG9jYYc0kUIAAAKEAAAASG1heHABOwG8AAABCAAAACBuYW1lx/RZbQAAJhgAAAKRcG9zdJZeEVUAACisAAACGAABAAAEAAAAAFwEAAAAAAAD9AABAAAAAAAAAAAAAAAAAAAAIwABAAAAAQAAAQsu/F8PPPUACwQAAAAAANXLJlEAAAAA1csmUQAAAAAD9AP0AAAACAACAAAAAAAAAAEAAAAjAbAADgAAAAAAAgAAAAoACgAAAP8AAAAAAAAAAQQAAZAABQAAAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA5wDnIQQAAAAAXAQAAAAAAAABAAAAAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAAAAACAAAAAwAAABQAAwABAAAAFAAEAGQAAAAEAAQAAQAA5yH//wAA5wD//wAAAAEABAAAAAEAAgADAAQABQAGAAcACAAJAAoACwAMAA0ADgAPABAAEQASABMAFAAVABYAFwAYABkAGgAbABwAHQAeAB8AIAAhACIAAAAAADIAjgFwAfgCIAKYAxIDSAO2BRYFMAVcBnIGugb2ByoHQgguCNYJRgn6CiQKiAquCsg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HkAbgBjAGYAdQBzAGkAbwBuACAATQBlAHQAcgBvACAAUwB0AHUAZABpAG8AdwB3AHcALgBzAHkAbgBjAGYAdQBzAGkAbwBuAC4AYwBvAG0AAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAjAQIBAwEEAQUBBgEHAQgBCQEKAQsBDAENAQ4BDwEQAREBEgETARQBFQEWARcBGAEZARoBGwEcAR0BHgEfASABIQEiASMBJAAQVGV4dF9PdXRkZW50XzAwMQtQaWN0dXJlXzAwMQxTZXR0aW5nc18wMDEQQ29sb3JfcGlja2VyXzAwMhBBbGlnbl9DZW50ZXJfMDA2CExpbmVfMDAxDVVuZGVybGluZV8wMDEMU29ydF9aLUFfMDAxCFVuZG9fMDAxEENoYXJ0X2J1YmJsZV8wMDELRG93bmxvYWRfMDAPVGV4dF9pbmRlbnRfMDAxEkNoYXJ0X0RvdWdobnV0XzAwMQlDbGVhcl8wMDINTnVtYmVyaW5nXzAwMQxTb3J0X0EtWl8wMDEKSXRhbGljXzAwMQtCdWxsZXRzXzAwMQlQYXN0ZV8wMDEIUmVkb18wMDEPQ2hhcnRfcmFkYXJfMDAxD0FsaWduX1JpZ2h0XzAwMQlUYWJsZV8wMDEOQWxpZ25fTGVmdF8wMDEITWVudV8wMDEHQ3V0XzAwMghCb2xkXzAwMRFBbGlnbl9KdXN0aWZ5XzAwMQpSZWxvYWRfMDAxClNlYXJjaF8wMDEKVXBsb2FkXzAwMQpEZXNpZ25fMDA1CkV4cG9ydF8wMDEIQ29weV8wMDIAAA==) format('truetype');
    font-weight: normal;
    font-style: normal;
}

.e-bigger .e-tbar-btn .tb-icons {
    font-size: 18px;
}

.e-tbar-btn .tb-icons {
    font-family: 'Material_toolbar';
    speak: none;
    font-size: 16px;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
}

    .e-tbar-btn .tb-icons.e-numbering-icon {
        font-size: 17px;
    }

.e-cut-icon:before {
    content: "\e719"
}

.e-copy-icon:before {
    content: "\e721"
}

.e-paste-icon:before {
    content: "\e712"
}

.e-color-icon:before {
    content: "\e703";
    font-size: 18px;
}

.e-bold-icon:before {
    content: "\e71a"
}

.e-underline-icon:before {
    content: "\e706";
}

.e-upload-icon:before {
    content: "\e71e"
}

.e-download-icon:before {
    content: "\e70a"
}

.e-indent-icon:before {
    content: "\e70b"
}

.e-outdent-icon:before {
    content: "\e700"
}

.e-clear-icon:before {
    content: "\e70d"
}

.e-reload-icon:before {
    content: "\e71c"
}

.e-export-icon:before {
    content: "\e720";
    font-size: 16px;
}

.e-italic-icon:before {
    content: "\e710"
}

.e-bullets-icon:before {
    content: "\e711";
}

.e-numbering-icon:before {
    content: "\e70e";
}

.e-ascending-icon:before {
    content: "\e70f";
    font-size: 18px;
}

.e-descending-icon:before {
    content: "\e707";
    font-size: 18px;
}
</style>

Output be like the below.

Item SuffixIcon

Template

The Toolbar supports adding template commands using the Template property. Template property can be given as the HTML element or RenderFragment. You can refer Set item-wise custom template for snippet and output.

Text

It is used to specify the text to be displayed on the Toolbar button. You can refer Getting Started for snippet and output.

TooltipText

It is used to specify the text to be displayed on hovering the Toolbar button.

Copied to clipboard
@using Syncfusion.Blazor.Navigations

<SfToolbar>
<ToolbarItems>
    <ToolbarItem Text="Cut" TooltipText="Cut"></ToolbarItem>
    <ToolbarItem Text="Copy" TooltipText="Copy"></ToolbarItem>
    <ToolbarItem Text="Paste" TooltipText="Paste"></ToolbarItem>
    //To separate the Toolbar items
    <ToolbarItem></ToolbarItem>
    <ToolbarItem Text="Bold" TooltipText="Bold"></ToolbarItem>
    <ToolbarItem Text="Underline" TooltipText="Underline"></ToolbarItem>
    <ToolbarItem Text="Italic" TooltipText="Italic"></ToolbarItem>
    <ToolbarItem Text="Color-Picker" TooltipText="Color Picker"></ToolbarItem>
</ToolbarItems>
</SfToolbar>

Output be like the below.

Item TooltipText

Type

It specifies the types of command to be rendered in the Toolbar. Supported types are:

  1. Button: Creates the Button control with its given properties like text, prefixIcon, etc.
  2. Separator: Adds a horizontal line that separates the Toolbar commands.
  3. Input: Creates an input element that is applicable to template rendering with Syncfusion controls like DropDownList, AutoComplete, etc.

Button

Button is the default command Type, and it can be rendered by using the Text property. Properties of the button command type:

Property Description
Text The text to be displayed for button.
ID The ID of the button to be rendered. If the ID is not given, auto ID is generated.
PrefixIcon Defines the class used to specify an icon for the button. The icon is positioned before the text if text is available or the icon alone button is rendered.
SuffixIcon Defines the class used to specify an icon for the button. The icon is positioned after the text if text is available. If both PrefixIcon and SuffixIcon are specified, only PrefixIcon is considered.
Width Used to set the width of the button.

You can refer Set Blazor Tooltip to the commands for snippet and output.

Separator

The Separator type adds a vertical separation between the Toolbar’s Single/Multiple commands.

Copied to clipboard
@using Syncfusion.Blazor.Navigations

<SfToolbar>
  <ToolbarItems>
<ToolbarItem Text="Cut"></ToolbarItem>
<ToolbarItem Text="Copy"></ToolbarItem>
<ToolbarItem Type="ItemType.Separator"></ToolbarItem>
<ToolbarItem Text="Paste"></ToolbarItem>
<ToolbarItem Type="ItemType.Separator"></ToolbarItem>
<ToolbarItem Text="Undo"></ToolbarItem>
<ToolbarItem Text="Redo"></ToolbarItem>
  </ToolbarItems>
</SfToolbar>

If Separator is added as the first or the last item, it will not be visible.

Output be like the below.

Item Separator

Input

The Input type is only applicable for adding Template elements when the Template property is defined as an object. Input type creates an input element internally that acts as the container for Syncfusion input based components.

NumericTextBox

  • The NumericTextBox component can be included by importing the @using Syncfusion.Blazor.Inputs package into the ~/_Imports.razor file.
  • Initialize the NumericTextBox in Template property, where the Toolbar item Type is set as Input.
  • Related NumericTextBox component properties can also be configured as given below.
Copied to clipboard
<SfNumericTextBox Format="n2"></SfNumericTextBox>
  • The DropDownList component can be included by importing the @using Syncfusion.Blazor.DropDowns package into the ~/_Imports.razor file.
  • Initialize the DropDownList in Template property, where the Toolbar item Type is set as Input.
  • Related DropDownList component properties can also be configured as given below.
Copied to clipboard
<SfDropdownList Width="100"></SfDropdownList>

RadioButton

  • The RadioButton component can be included by importing the @using Syncfusion.Blazor.Buttons package into the ~/_Imports.razor file.
  • Initialize the RadioButton in Template property, where the Toolbar item Type is set as Input.
  • Related RadioButton component properties can also be configured as given below.
Copied to clipboard
<SfRadioButton Label="Option 1" Name="Default"></SfRadioButton>

The following code explains how to add NumericTextBox, DropDownList, RadioButton and CheckBox components to the Toolbar.

Copied to clipboard
@using Syncfusion.Blazor.Navigations
@using Syncfusion.Blazor.Inputs
@using Syncfusion.Blazor.DropDowns
@using Syncfusion.Blazor.Buttons

<SfToolbar>
<ToolbarItems>
    <ToolbarItem Type="ItemType.Input">
      <Template>
        <SfNumericTextBox Width="150" Value=1 Format="c2"></SfNumericTextBox>
      </Template>
    </ToolbarItem>
    <ToolbarItem></ToolbarItem>
    <ToolbarItem Type="ItemType.Input">
        <Template>
            <SfDropDownList TValue="string" ID="Games" DataSource="@SportsData" Width="120" Index="2" TItem="Games">
                <DropDownListFieldSettings Value="Text"></DropDownListFieldSettings>
            </SfDropDownList>
        </Template>
    </ToolbarItem>
    <ToolbarItem></ToolbarItem>
    <ToolbarItem Type="ItemType.Input">
        <Template>
            <SfCheckBox Checked="true" Label="CheckBox"></SfCheckBox>
        </Template>
    </ToolbarItem>
    <ToolbarItem></ToolbarItem>
    <ToolbarItem Type="ItemType.Input">
        <Template>
            <SfRadioButton Label="Radio" Name="default" Value="Radio" @bind-Checked="CheckedValue"></SfRadioButton>
        </Template>
    </ToolbarItem>
</ToolbarItems>
</SfToolbar>

@code {
private string CheckedValue = "Radio";
public class Games
{
    public string Id { get; set; }
    public string Text { get; set; }
}
List<Games> SportsData = new List<Games> {
new Games() { Id= "Game2", Text= "Badminton" },
new Games() { Id= "Game4", Text= "Cricket" },
new Games() { Id= "Game5", Text= "Football" },
new Games() { Id= "Game6", Text= "Golf" },
new Games() { Id= "Game10", Text= "Tennis"}
  };
}

Output be like the below.

Toolbar Control with item configuration

Visible

It specifies whether an item should be hidden or not.

Copied to clipboard
@using Syncfusion.Blazor.Navigations

<SfToolbar>
<ToolbarItems>
    <ToolbarItem Text="Cut" Visible=false></ToolbarItem>
    <ToolbarItem Text="Copy"></ToolbarItem>
    <ToolbarItem Type="ItemType.Separator"></ToolbarItem>
    <ToolbarItem Text="Paste"></ToolbarItem>
    <ToolbarItem Type="ItemType.Separator"></ToolbarItem>
    <ToolbarItem Text="Undo"></ToolbarItem>
    <ToolbarItem Text="Redo"></ToolbarItem>
</ToolbarItems>
</SfToolbar>

Output be like the below.

Item Visible

Width

It specifies the width of the Toolbar button commands.

Copied to clipboard
@using Syncfusion.Blazor.Navigations

<SfToolbar>
<ToolbarItems>
    <ToolbarItem Text="Cut" Width="50px"></ToolbarItem>
    <ToolbarItem Text="Copy"></ToolbarItem>
    <ToolbarItem Type="ItemType.Separator"></ToolbarItem>
    <ToolbarItem Text="Paste"></ToolbarItem>
    <ToolbarItem Type="ItemType.Separator"></ToolbarItem>
    <ToolbarItem Text="Undo"></ToolbarItem>
    <ToolbarItem Text="Redo"></ToolbarItem>
</ToolbarItems>
</SfToolbar>

Output be like the below.

Item Width