moeen-basra / ree-validate

Simple React.js input validation plugin extended from vee-validate
MIT License
16 stars 4 forks source link

Custom Validation Rule and Passing Constructor Options #6

Closed s14dev closed 4 years ago

s14dev commented 6 years ago

Versions:

Description:

When using the extending options, give option for accessing the constructor option such as this.


  getMessage: field => "Email is already registered",
  validate: value => {
    this.customFunction('')
    return true;
  }
});```

### Steps To Reproduce:
For example running graqhql query in custom validation