From 01e6b36a369aab99c661716edff626573500706a Mon Sep 17 00:00:00 2001 From: Christian Alfoni Date: Tue, 14 Apr 2015 19:07:04 +0200 Subject: [PATCH] Update README.md --- README.md | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 8495bab..be7d57a 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,7 @@ formsy-react A form input builder and validator for React JS -## Running with React 0.13.x -In development you will get a warning about Formsy overriding `props`. This is due to a change in the React API. A new solution has been developed for next Formsy release, though it will not be available until React 0.14.0 is ready. So please just ignore the warning for now and when React 0.14.0 is here, they will be gone! +## From version 0.12.0 Formsy only supports React 0.13.1 and up [Read more about Formsy release v1.0.0](https://github.com/christianalfoni/formsy-react/issues/83) @@ -25,6 +24,7 @@ In development you will get a warning about Formsy overriding `props`. This is d - [onValidSubmit()](#onvalidsubmit) - [onInvalidSubmit()](#onvinalidsubmit) - [onChange()](#onchange) + - [novalidate](#novalidate) - [Formsy.Mixin](#formsymixin) - [name](#name) - [value](#value) @@ -223,7 +223,7 @@ var Form = React.createClass({ #### onSubmit(data, resetForm, invalidateForm) ```html - + ``` Takes a function to run when the submit button has been clicked. @@ -231,34 +231,40 @@ The first argument is the data of the form. The second argument will reset the f #### onValid() ```html - + ``` Whenever the form becomes valid the "onValid" handler is called. Use it to change state of buttons or whatever your heart desires. #### onInvalid() ```html - + ``` Whenever the form becomes invalid the "onInvalid" handler is called. Use it to for example revert "onValid" state. #### onValidSubmit(model, resetForm, invalidateForm) ```html - + ``` Triggers when form is submitted with a valid state. The arguments are the same as on `onSubmit`. #### onInvalidSubmit(model, resetForm, invalidateForm) ```html - + ``` Triggers when form is submitted with an invalid state. The arguments are the same as on `onSubmit`. #### onChange(currentValues) ```html - + ``` "onChange" triggers when setValue is called on your form elements. It is also triggered when dynamic form elements have been added to the form. The "currentValues" is an object where the key is the name of the input and the value is the current value. +#### novalidate +By default Formsy will set the "novalidate" attribute on the form, ignoring native validations. You can turn this off with: +```html + +``` + ### Formsy.Mixin #### name