galki / material-ui-form

State and validation support for Material-UI form components
MIT License
11 stars 3 forks source link

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

Open schatterjee-erwin opened 5 years ago

schatterjee-erwin commented 5 years ago

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.