Back to Devexpress

IToolbarItemInfo Interface

blazor-devexpress-dot-blazor-904863f5.md

latest1.6 KB
Original Source

IToolbarItemInfo Interface

Provides information about a Toolbar item.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
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
<DxToolbar>
    <DxToolbarItem Text="Insert">
        <Template>
            <p class="toolbar-item">@context.Text</p>
        </Template>
    </DxToolbarItem>
    <DxToolbarItem Text="Edit"></DxToolbarItem>
    <DxToolbarItem Text="Delete"></DxToolbarItem>
</DxToolbar>
css
.toolbar-item {
    margin-right: 8px;
    font-weight: bold;
    padding-left: 4px;
    padding-right: 4px;
    cursor: pointer;
}

.toolbar-item:hover {
    background-color: black;
    color: white;
}

Run Demo: Toolbar - Item Templates

See Also

IToolbarItemInfo Members

DevExpress.Blazor Namespace