Skip to content

Allow overide defaultValidators#135

Open
ngonhan2k5 wants to merge 3 commits intoinsin:reactfrom
ngonhan2k5:react
Open

Allow overide defaultValidators#135
ngonhan2k5 wants to merge 3 commits intoinsin:reactfrom
ngonhan2k5:react

Conversation

@ngonhan2k5
Copy link
Copy Markdown

Ex: override message

const LoginForm = forms.Form.extend({
    email: forms.EmailField({validators: [EmailValidator({message:'my customize email invalid msg'})] }),
    password: forms.CharField({widget: forms.PasswordInput})
  }
)

Ex: override message
```
const LoginForm = forms.Form.extend({
    email: forms.EmailField({validators: [EmailValidator({message:'my customize email invalid msg'})] }),
    password: forms.CharField({widget: forms.PasswordInput})
  }
)
```
Allow override the defaultValidators
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant