From 23f8e83efe12b88c4f144a1c0860c3579093ef70 Mon Sep 17 00:00:00 2001 From: monkeydri Date: Mon, 29 Apr 2019 11:04:33 +0200 Subject: [PATCH] describe how to pass argument to error() method callback --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c0574a7..982de25 100755 --- a/README.md +++ b/README.md @@ -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