MNameValidator

MNameValidator. MNameValidator

Name validator.

Constructor

new MNameValidator(fieldInstance, onFocusOut, onKeyUp)

Description:
  • Constructor.

Parameters:
Name Type Description
fieldInstance MField

Field instance.

onFocusOut boolean

Whether to validate on focusout event.

onKeyUp boolean

Whether to validate on keyup event.

Extends

Methods

validate()

Description:
  • Implement this method in child class to raise MValidationFailedException exception if the validation fails.

Overrides:

onKeyUp() → {boolean}

Description:
  • Property method.

Overrides:
Returns:

Value.

Type
boolean

onFocusOut() → {boolean}

Description:
  • Property method.

Overrides:
Returns:

Value.

Type
boolean