From db00c79c2ae55fc843a83500e18822d70b90b9b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awomir=20Jedlikowski?= Date: Tue, 30 Oct 2018 14:52:26 +0100 Subject: [PATCH] updated readme --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3ab8950..b8130dc 100644 --- a/README.md +++ b/README.md @@ -22,8 +22,16 @@ Additional event is emitted, when user scrolls up - it allows you to refresh ele // your callback for reloading element, i.e. reloadContent($element); }); - - AdRefresher.init($element); + + // default options + var options = { + loadingThreshold: 300, + reloadingThreshold: 150, + useReloading: true // if set to false, it will disable reload event + } + + // second parameter is optional + AdRefresher.init($element, options); ``` ## Development