DxToolbarItem.RenderStyle Property

Specifies the item's predefined style.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.dll

Declaration

[DefaultValue(ButtonRenderStyle.Secondary)]
[Parameter]
public ButtonRenderStyle RenderStyle { get; set; }

Property Value

Type Default Description
ButtonRenderStyle

Secondary

One of the ButtonRenderStyle values.

Remarks

Use this property to specify the Toolbar item's predefined style.

<DxToolbar>
    <DxToolbarItem Text="Info" 
                   RenderStyle="ToolbarItemRenderStyle.Info" />
    <DxToolbarItem Text="Success" 
                   RenderStyle="ToolbarItemRenderStyle.Success" />
    <DxToolbarItem IconCssClass="oi oi-warning" 
                   BeginGroup="true" 
                   RenderStyle="ToolbarItemRenderStyle.Danger" 
                   Text="Danger" />
    <DxToolbarItem IconCssClass="oi oi-warning" 
                   Text="Auto" />
    <DxToolbarItem IconCssClass="oi oi-warning" 
                   RenderStyle="ToolbarItemRenderStyle.Warning" 
                   Text="Warning" />
</DxToolbar>

Toolbar Item Render Style

You can also specify the color fill mode for items. Refer to RenderStyleMode and ItemRenderStyleMode for more information.

NOTE

Online Demo: Toolbar - Render Style

See Also