IValidationResult Interface

A structure used by Editor.validateUserInfo to store results of the UserInfo validation.

example
// Validate userInfo.
editor.validateUserInfo(data).then(function (r) {
    if (r.error) {
        // Output the error.
        console.error(r);
        return;
    }
    
    // Populate the product with valid user data.
    editor.loadUserInfo(data);        
})

Properties

error

error: boolean

The validation status. If true, then the input contains errors.

Optional errorMessage

errorMessage: string

The error message.