SaveButton

SaveButton is a React Component which wraps React-Toolbox Button. By default, it passes primary = true and, prior to version 1.4.1, it always passed raised = true, plus flat = true when disabled. Now it sets raised = true when enabled and flat = true when disabled. However, you can always override all these props by explicitly setting them to true or false in SaveButton.

You can place it under the MobxSchemaForm. Clicking on it will validate the whole form and if there are no validation errors, model.save() will be called with the options provided to the SaveButton.

SaveButton supports the following props:

Any other properties are passed to React-Toolbox Button component.

Last updated