Skip to main content

DxToolbarItem.Template Property

Specifies the template to display an item’s content.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v22.1.dll


public RenderFragment<IToolbarItemInfo> Template { get; set; }

Property Value

Type Description

The template content for an object of the IToolbarItemInfo type that stores information about an item (the text, state, icon, etc.)


Use the Template property to completely override an individual item’s content, including text, icon, child item, etc.

The example below demonstrates how to add the Search text box to the Toolbar component.

<div class="card-header p-2 bg-transparent">
    <DxToolbar ItemRenderStyleMode="ToolbarRenderStyleMode.Plain">
                    <div class="dxbs-textbox">
                        <input type="text" class="form-control" placeholder="Search...">
                        <span class="dxbs-feedback">
                            <span class="d-flex pl-2 pr-2" role="button" style="color:gray">
                                <span class="oi oi-magnifying-glass"></span>
            <DxToolbarItem IconCssClass="oi oi-cog" Tooltip="Settings" />

Toolbar Item Template

Run Demo: Toolbar - Templates

See Also