Skip to main content
All docs
V24.2

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

HtmlEditorToolbarGroupNames.Variable Property

Gets the name of the Variable group.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public static string Variable { get; }

#Property Value

Type Description
String

The “Variable” string.

#Remarks

The Variable group in the Html Editor‘s toolbar includes the following items:

Insert Variable Field
The drop-down editor allows users to insert a variable to a document.

Html Editor - Toolbar Variable Group

Use the Variable property to perform the following operations:

The default Html Editor‘s toolbar does not contain the Variable group. Use the following code snippet to add the Variable group to the toolbar:

Razor
<DxHtmlEditor Width="100%"
              Height="200px"
              CustomizeToolbar="@OnCustomizeToolbar"/>

@code {
    void OnCustomizeToolbar(IToolbar toolbar) {
        var groupName = HtmlEditorToolbarGroupNames.Variable;
        toolbar.Groups.Add(groupName);
    }
}
See Also