IToolbarItemInfo Interface

Provides information about a Toolbar item.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.dll

Declaration

public interface IToolbarItemInfo

Remarks

The example below demonstrates how to customize 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>
NOTE

Online Demo: Toolbar - Item Templates

See Also