blazor-devexpress-dot-blazor-dot-dxtoolbar-1146a70c.md
Specifies the template for the toolbar title.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[Parameter]
public RenderFragment<object> TitleTemplate { get; set; }
| Type | Description |
|---|---|
| RenderFragment<Object> |
The template content.
|
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.
<div class="card p-2">
<DxToolbar Title="DevExpress Logo">
<TitleTemplate>
</TitleTemplate>
<Items>
<DxToolbarItem Text="Products" />
<DxToolbarItem Text="Support" />
<DxToolbarItem Text="Documentation" />
</Items>
</DxToolbar>
</div>
See Also