Skip to main content

IToolbarItemInfo Interface

Provides information about a Toolbar item.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

public interface IToolbarItemInfo

The following members return IToolbarItemInfo objects:

Remarks

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

<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