Interface Editor.IValidationResult
A structure used by Editor.validateUserInfo() to store results of the UserInfo validation.
Package: @aurigma/design-editor-iframe
Examples
// Validate userInfo.
const validationResults = await editor.validateUserInfo(data);
if (validationResults.error) {
// Output the error.
console.error(validationResults);
return;
}
// Populate the product with valid user data.
editor.loadUserInfo(data);
Properties
error
The validation status. If true, then the input contains errors.
Declaration
error: boolean;
Property Value
| Type | Description |
|---|---|
| boolean | The validation status. If |
errorMessage
The error message.
Declaration
errorMessage?: string;
Property Value
| Type | Description |
|---|---|
| string | The error message. |