From 8fcc0f51194f384778902daf380bc900b8cf0fc1 Mon Sep 17 00:00:00 2001 From: Varun Nath Date: Sun, 23 Feb 2014 12:13:42 +0530 Subject: [PATCH] Update Readme.md added examples for getter/setter --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 8395af2..d33eb32 100644 --- a/README.md +++ b/README.md @@ -796,6 +796,16 @@ The maximum Y scroll position. This defines the bottom-most position of the scro user can drag past the maximum Y, but then the scroller will snap-back to the maximum Y position. +##### Example usage of iscroll getters/setters : + +```javascript + + $('.example-wrapper').iscrollview('y'));/* Returns the current y position of the scroller */ + $('.example-wrapper').iscrollview('minScrollY',-20); /* Sets the min Y scroll position to -20 */ + $('.example-wrapper').iscrollview('scrollerH');/* Returns the height of the scroller in pixels */ + $('.example-wrapper').iscrollview('wrapperH');/* Returns the height in pixels of the wrapper*/ + +``` --- Public Members