* [doc] Add doc for scroller, which exists in https://github.com/alibaba/weex/blob/doc/doc/components/scroller.md#attributes , and disappears for a reason that no one knows.
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/6dc87a74 Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/6dc87a74 Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/6dc87a74 Branch: refs/heads/master Commit: 6dc87a74fabb014f08e2e7dccd501bbf51e5e4d1 Parents: 18aa8f0 Author: YorkShen <[email protected]> Authored: Thu Mar 2 17:00:44 2017 +0800 Committer: YorkShen <[email protected]> Committed: Thu Mar 2 17:00:44 2017 +0800 ---------------------------------------------------------------------- doc/source/cn/references/components/scroller.md | 4 ++++ doc/source/references/components/scroller.md | 4 ++++ 2 files changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/6dc87a74/doc/source/cn/references/components/scroller.md ---------------------------------------------------------------------- diff --git a/doc/source/cn/references/components/scroller.md b/doc/source/cn/references/components/scroller.md index 4bb9f4b..694ce87 100644 --- a/doc/source/cn/references/components/scroller.md +++ b/doc/source/cn/references/components/scroller.md @@ -33,6 +33,10 @@ version: 2.1 - `show-scrollbar {boolean}`ï¼å¯éå¼ä¸º `true`/ `false`ï¼é»è®¤å¼ä¸º `true`ãæ§å¶æ¯å¦åºç°æ»å¨æ¡ã - `scroll-direction {string}`ï¼å¯é为 `horizontal` æè `vertical`ï¼é»è®¤å¼ä¸º `vertical` ãå®ä¹æ»å¨çæ¹åã + - `scroll-direction`å®ä¹äºscrollerçæ»å¨æ¹åï¼`flex-direction`å®ä¹äºscrollerçå¸å±æ¹åï¼ä¸¤ä¸ªæ¹åå¿ é¡»ä¸è´ã + - `scroll-direction`çé»è®¤å¼æ¯`vertical`,`flex-direction`çé»è®¤å¼æ¯`row`ã + - å½éè¦ä¸ä¸ªæ°´å¹³æ¹åçscrolleræ¶ï¼ä½¿ç¨`scroll-direction:horizontal`å`flex-direction: row`ã + - å½éè¦ä¸ä¸ªç«ç´æ¹åçscrolleræ¶ï¼ä½¿ç¨`scroll-direction:vertical`å`flex-direction: column`ãç±äºè¿ä¸¤ä¸ªå¼åæ¯é»è®¤å¼ï¼å½éè¦ä¸ä¸ªç«ç´æ¹åçscrolleræ¶ï¼è¿ä¸¤ä¸ªå¼å¯ä»¥ä¸è®¾ç½®ã - `loadmoreoffset {number}`ï¼é»è®¤å¼ä¸º 0ï¼è§¦å `loadmore` äºä»¶æéè¦çåç´åç§»è·ç¦»ï¼è®¾å¤å±å¹åºé¨ä¸é¡µé¢åºé¨ä¹é´çè·ç¦»ï¼ãå½é¡µé¢çæ»å¨æ¡æ»å¨å°è¶³å¤æ¥è¿é¡µé¢åºé¨æ¶å°ä¼è§¦å `loadmore` è¿ä¸ªäºä»¶ã  http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/6dc87a74/doc/source/references/components/scroller.md ---------------------------------------------------------------------- diff --git a/doc/source/references/components/scroller.md b/doc/source/references/components/scroller.md index 1b65907..2f637d0 100644 --- a/doc/source/references/components/scroller.md +++ b/doc/source/references/components/scroller.md @@ -27,6 +27,10 @@ And there are two special components that can only be used inside scroller compo * show-scrollbar: true/false whether show the scroll bar or not, default value is true * scroll-direction: <string> define scroll direction of component, horizontal or vertical + * `scroll-direction` defines the scrollable axis of scroller and `flex-direction` defines the layout axis of scroller. `scroll-direction` and `flex-direction` must be set to the same direction, otherwise, undefined behavior may happen. + * Default value for `scroll-direction` is vertical, and for `flex-direction` is row . + * Use `scroll-direction:horizontal` and `flex-direction: row` when a horizontal layout and scrollable scroller is expected. + * Use `scroll-direction:vertical` and `flex-direction: column` when a vertical layout and scrollable scroller is expected. But thoes two values are default, if you don't set them, it also works fine. * loadmoreoffset : <number> default value is 0. The loadmore event will be triggered when the list is loadmoreoffset left to reach the bottom of the list view. e.g. a list has total content length of 1000, and the loadmoreoffset is set to 400, the loadmore event will be triggered when 600 has beed scrolled and there is less than 400 left. * loadmoreretry : <number> default value 0ï¼whether to reset loadmore related UI when loadmore failed, will be deprecated in further release.
