HtmlEditorToolbarGroupNames.Variable Property
Gets the name of the Variable group.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
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.
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