Initializing help system before first use

Result

Holds the result of a validation process
constructor

Constructor

new Result ( isValid )
Parameters:
params
Name Type Argument Default Description
isValid
type
boolean
optional  false Flag whether validation is successful
details
Properties:
properties
Name Type Description
isValid
type
boolean
The validation outcome
errorMessage
type
string | null
The error message, if any
Example
examples
// For a failed validation
var result = new insight.validation.Result(false);
result.errorMessage = 'The value must be greater than 100';