Github user cxfeng1 commented on a diff in the pull request: https://github.com/apache/incubator-weex-site/pull/19#discussion_r162045477 --- Diff: source/references/components/scroller.md --- @@ -1,40 +1,39 @@ --- title: <scroller> type: references -group: Build-in Components -order: 8.09 +order: 2.8 version: 2.1 --- # <scroller> <span class="weex-version">v0.6.1+</span> -A scroller is a component in vertical direction which can have multiple child components in one column. If total height of its child components exceed the height of the scroller, the whole child components will be scrollable. +Scroller is a component which can have multiple child components in one column. It supports both direcitons. If the content size of child components exceeds the frame of the scroller, the whole child components will be scrollable. Notes: A <scroller> can be used as a root element or a embed element. The scroll direction of this component is column, and it can't be changed. ## Child Components Scroller supports all kinds of components, such as div, text, etc. -And there are two special components that can only be used inside scroller component. +There are two special components that can only be used inside scroller component. -* refresh 0.6.1 used inside list to add pull-down-to-refresh functionality. -* loading 0.6.1 used inside list to add pull-up-to-load-more functionality. +* refresh 0.6.1 used inside list to add pull-down-to-refresh functionality. +* loading 0.6.1 used inside list to add pull-up-to-load-more functionality. ## Attributes -* 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 +* show-scrollbar: <boolean> true | false, default value is true. This attribute indicates whether show the scroll bar or not. --- End diff -- A Boolean value that controls whether the scroll indicator is visible.
---