Class: SuiValidator

'brixy.ui.SuiValidator'~ SuiValidator

new SuiValidator ()

SuiValidator object.

Source:

Methods

addRule (element, validator, argsopt)

Adds new rule.

Parameters:
Name Type Attributes Description
element ScriptUIcontrol

Tested element.

validator string | function

Validator method.

args Array <optional>

Additional parameters will be passed to validator method. (optional)

Throws:
  • string :

    Exception if a validator rule cannot be set.

Source:

toString () → {string}

Returns a string representation of the object.

Returns:
  • string
Source:

validate () → {boolean}

Validate all rules.

Returns:
  • boolean :

    Result of the validation.

Source: