From b11e380c47c3bf69d02b5dcb83411b1d04e254e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Szczeci=C5=84ski?= Date: Tue, 23 May 2017 09:19:32 +0200 Subject: [PATCH] Fixed SyntaxError in example of scrollTo The example code uses semicolons where commas should be used. --- docs/scrollview.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/scrollview.html b/docs/scrollview.html index 52aa21cac3c5a0..4f0965087983ec 100644 --- a/docs/scrollview.html +++ b/docs/scrollview.html @@ -106,7 +106,7 @@ - end will align the snap at the right (horizontal) or bottom (vertical)

iossnapToInterval?: number #

When set, causes the scroll view to stop at multiples of the value of snapToInterval. This can be used for paginating through children that have lengths smaller than the scroll view. Used in combination -with snapToAlignment.

ioszoomScale?: number #

The current scale of the scroll view content. The default value is 1.0.

Methods #

scrollTo(y?: number, object, x?: number, animated?: boolean) #

Scrolls to a given x, y offset, either immediately or with a smooth animation.

Example:

scrollTo({x: 0; y: 0; animated: true})

Note: The weird function signature is due to the fact that, for historical reasons, +with snapToAlignment.

ioszoomScale?: number #

The current scale of the scroll view content. The default value is 1.0.

Methods #

scrollTo(y?: number, object, x?: number, animated?: boolean) #

Scrolls to a given x, y offset, either immediately or with a smooth animation.

Example:

scrollTo({x: 0, y: 0, animated: true})

Note: The weird function signature is due to the fact that, for historical reasons, the function also accepts separate arguments as an alternative to the options object. This is deprecated due to ambiguity (y before x), and SHOULD NOT BE USED.

scrollToEnd(options?: object) #

If this is a vertical ScrollView scrolls to the bottom. If this is a horizontal ScrollView scrolls to the right.

Use scrollToEnd({animated: true}) for smooth animated scrolling, @@ -278,4 +278,4 @@ inputSelector: '#algolia-doc-search', algoliaOptions: { facetFilters: [ "tags:0.44" ], hitsPerPage: 5 } }); - \ No newline at end of file +