Skip to content
This repository has been archived by the owner on Nov 14, 2019. It is now read-only.

Validating "isRequired" and isLength in data-validators #70

Open
schatterjee-erwin opened this issue Jan 16, 2019 · 0 comments
Open

Validating "isRequired" and isLength in data-validators #70

schatterjee-erwin opened this issue Jan 16, 2019 · 0 comments

Comments

@schatterjee-erwin
Copy link

Hello,

Is it possible to add a string and array of objects in data-validators?
This is what I am trying to achieve:
<TextField fullWidth name="Name" value="" margin="normal" data-validators={['isRequired', [{ isLength: { min: 4, max: 5 } }]]} />

After testing, the 'isLength' validation does not work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant