new BaseOption()
baseA base class for option handling
Members
-
defaultOptionsObject
base -
Default options used for this object
-
validationRulesObject
base -
A list of validate.js-validation rules
Methods
-
validate(validateOptions)
base -
Validate the given options (merged together with the default options) against the validation rules.
Returns the options with the default options set. May throw an {@code errors.invalidOption} error.
Name Type Description validateOptions
options to be validated
Returns:
options with default options