Skip to content

Commit

Permalink
describe how to pass argument to error() method callback
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeydri committed Apr 29, 2019
1 parent e1516df commit 23f8e83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ Put the button in the normal state.
Put the button in the success state. Call the callback or the onSuccess prop when going back to the normal state.
Use `dontGoBackToNormal` flag to keep the button in success state (default is `false` so the button goes back to normal state after `durationSuccess`).

##### error([callback, dontGoBackToNormal])
##### error([callback, error, dontGoBackToNormal])

Put the button in the error state. Call the callback or the onError prop when going back to the normal state.
Put the button in the error state. Call the callback or the onError prop (with `error` argument) when going back to the normal state.
Use `dontGoBackToNormal` flag to keep the button in error state (default is `false` so the button goes back to normal state after `durationError`).

## Styles
Expand Down

0 comments on commit 23f8e83

Please sign in to comment.