API

There are a number of API functions that can be used to perform validation in alternative ways. Generally when using MobxSchemaForm and SaveButton, it's not necessary to use any of them, except to set up validateForm() to run in FormStore afterRefresh callback.

The API functions are fairly well-documented with jsDoc: https://github.com/alexhisen/mobx-schema-form/blob/master/src/validate.js

To create your own SaveButton, you will want to use validateAndSave().

Last updated