Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IToolbarItemInfo Interface

Provides information about a Toolbar item.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public interface IToolbarItemInfo

The following members return IToolbarItemInfo objects:

#Remarks

The following code snippet customizes a Toolbar item’s appearance using the Template property.

Razor
<style>
    .toolbar-item {
        margin-right: 8px;
        font-weight: bold;
        padding-left: 4px;
        padding-right: 4px;
        cursor: pointer;
    }

    .toolbar-item:hover {
        background-color: black;
        color: white;
    }
</style>

<DxToolbar>
    <DxToolbarItem Text="Insert">
        <Template>
            <p class="toolbar-item">@context.Text</p>
        </Template>
    </DxToolbarItem>
    <DxToolbarItem Text="Edit"></DxToolbarItem>
    <DxToolbarItem Text="Delete"></DxToolbarItem>
</DxToolbar>

Run Demo: Toolbar - Item Templates

See Also