Material-table: Disable save button on add row if all fields aren't complete

Created on 29 May 2019  路  8Comments  路  Source: mbrn/material-table

Hi,

I was wondering if this functionality exists within the library? I had a look, but I'm not sure it does. I'd like to disable the save button when adding a new row if all the row fields aren't filled out. I hope you can point me in the right direction!

Thank you,

Dhruv

enhancement

Most helpful comment

Hi @dhruuuuuv ,

Currently editable feature does not support for verification. I will add yup to verification asap.

All 8 comments

Hi @dhruuuuuv ,

Currently editable feature does not support for verification. I will add yup to verification asap.

Thanks -- validation would be great.
Even if you don't have anything fancy built-in, just have a onBeforeXXX, onAfterXXX and onXXXCancel hooks that allow possible cancellation and icon enable/disable that would do the trick I think.

Hi @mbrn - I'm just wondering if there's any updates on this feature?

Any update on this feature?

Any updates on this ?

I'm currently struggling with implementing Formik and Yup into this solution. This would be a godsend for our project.

Looking forward to this feature too

Its down. Check out the validate field of the columns!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bohrsty picture bohrsty  路  3Comments

behrouz-s picture behrouz-s  路  3Comments

KKrisu picture KKrisu  路  3Comments

jlgreene2 picture jlgreene2  路  3Comments

balibou picture balibou  路  3Comments