blazor-devexpress-dot-blazor-dot-htmleditortoolbargroupnames.md
Gets the name of the Variable group.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
public static string Variable { get; }
| Type | Description |
|---|---|
| String |
The “Variable” string.
|
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:
<DxHtmlEditor Width="100%"
Height="200px"
CustomizeToolbar="@OnCustomizeToolbar"/>
@code {
void OnCustomizeToolbar(IToolbar toolbar) {
var groupName = HtmlEditorToolbarGroupNames.Variable;
toolbar.Groups.Add(groupName);
}
}
See Also
HtmlEditorToolbarGroupNames Class