Skip to content

Release 1.4

Latest
Compare
Choose a tag to compare
@surinderlohat surinderlohat released this 21 Jan 12:27
· 4 commits to main since this release
0c98fb6

Add support for setting up custom rules on the fly .
using form.getField('key').setRules(new rules here)

add a new rule same to match field value with other field value
i.e can be used in confirm password case

const field: IFieldObject = {
  password: {
    label: 'Password',
    value: '123',
    rules: {
      min: 5,
      max: 10,
    },
  },
  confirmPassword: {
    label: 'Confirm Password',
    value: '123',
    rules: {
      same: 'password',
      min: 5,
      max: 10,
    },
  },
};