Back to Devexpress

DxToolbar.TitleTemplate Property

blazor-devexpress-dot-blazor-dot-dxtoolbar-1146a70c.md

latest1.7 KB
Original Source

DxToolbar.TitleTemplate Property

Specifies the template for the toolbar title.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public RenderFragment<object> TitleTemplate { get; set; }

Property Value

TypeDescription
RenderFragment<Object>

The template content.

|

Remarks

The TitleTemplate property specifies the template for the toolbar title. You can use the template’s context parameter to get the toolbar’s title. The following code snippet uses this parameter to specify the alt attribute for the image.

razor
<div class="card p-2">
    <DxToolbar Title="DevExpress Logo">
        <TitleTemplate>
            
        </TitleTemplate>
        <Items>
            <DxToolbarItem Text="Products" />
            <DxToolbarItem Text="Support" />
            <DxToolbarItem Text="Documentation" />
         </Items>
    </DxToolbar>
</div>

Run Demo: Toolbar - Templates

See Also

DxToolbar Class

DxToolbar Members

DevExpress.Blazor Namespace