Removed onCancel

This commit is contained in:
Christian Alfoni 2015-01-07 09:53:17 +01:00
parent b04c989cf6
commit 63938025fa
1 changed files with 0 additions and 7 deletions

View File

@ -18,7 +18,6 @@ A form input builder and validator for React JS
- [onSuccess()](#onsuccess)
- [onSubmit()](#onsubmit)
- [onSubmitted()](#onsubmitted)
- [onCancel()](#oncancel)
- [onError()](#onerror)
- [onValid()](#onvalid)
- [onInvalid()](#oninvalid)
@ -237,12 +236,6 @@ Takes a function to run when the submit button has been clicked. The first argum
```
Takes a function to run when either a success or error response is received from the server.
#### <a name="oncancel">onCancel()</a>
```html
<Formsy.Form url="/users" onCancel={this.goBack}></Formsy.Form>
```
Will display a "cancel" button next to submit. On click it runs the function handler.
#### <a name="onerror">onError(serverResponse)</a>
```html
<Formsy.Form url="/users" onError={this.changeToFormErrorClass}></Formsy.Form>