blazor-devexpress-dot-blazor-24a1d829.md
Lists validation message positions relative to the HTML Editor.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
public enum HtmlEditorValidationMessagePosition
| Name | Description | Image |
|---|---|---|
Bottom |
Bottom position.
|
|
| Top |
Top position.
|
|
| Left |
Left position.
|
|
| Right |
Right position.
|
|
The following properties accept/return HtmlEditorValidationMessagePosition values:
Use the ValidationMessagePosition property to change the position of a validation message that the editor displays on invalid user input.
The following code snippet validates user input in the MarkupChanged event handler and configures validation settings as follows:
<DxHtmlEditor Markup="@markup"
IsValid="@isValid"
ValidationMessage="Empty markup."
ValidationMessagePosition="HtmlEditorValidationMessagePosition.Right"
MarkupChanged="@OnMarkupChanged"
Height="100px"
Width="80%" />
@code {
bool isValid;
string markup { get; set; } = "";
void OnMarkupChanged(string newValue) {
markup = newValue;
isValid = !string.IsNullOrEmpty(newValue);
}
}
See Also