Back to Devexpress

HtmlEditorToolbarGroupNames.Variable Property

blazor-devexpress-dot-blazor-dot-htmleditortoolbargroupnames.md

latest2.1 KB
Original Source

HtmlEditorToolbarGroupNames.Variable Property

Gets the name of the Variable group.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public static string Variable { get; }

Property Value

TypeDescription
String

The “Variable” string.

|

Remarks

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

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

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

HtmlEditorToolbarGroupNames Class

HtmlEditorToolbarGroupNames Members

DevExpress.Blazor Namespace