0.4
A fixed height container which has multiple child components (cells) arranged in one column. If total height of its child components is higher then the height of itself, the whole child components are scrollable and it's high-performanced.
Notes: height of list must be specified (list's styles must contain height or pair of top, bottom or flex value if outter container's flex-direction value is column).
The list is alias of vlist which display component in vertical oritentation, and hlist for the horizontal scroll component.
cellis a available candidate to be used as a child component forlist.refreshcomponent can be used inside list to add pull to refresh functionality.loadingcomponent can be used inside list to add loading view at the bottom of scroller.
loadmoreoffset: <number> the offset distance downwards the bottom of the list to trigger the loadmore event, which is triggered when the list scrolls down near enough to the bottom.
Other attributes please check out the common attributes.
transform: <string> define item transformation. See next section for mmore detail.
The tranform attribute allow you tranlate,rotate,scale and change transparency of item according distance between item and list component's center. Item right in middle has no transformation applied.
The value is a simple expression, like
transform(value,[...valueN]);[...transformN(value,[...valueN]);]
Very similar to the 2D transform in CSS3.
For example,
transform="scale(0.5,0.5);translate(100,0)"
This means the item will scale to 50% of the origin size and translate 100 in x axis when it arrive the edge of list component.
The value you set is the transform will apply to the Edge-Item.
These transform functions are supported:
scale(x,y): scale item, x and y should be a positive float number.translate(x,y): translate item,xandyshoule be integer numbers.opacity(n): change the transparency of item,nmust in[0,1.0].rotate(n): rotate item, n is integer number.
common styles: check out common styles for components
- support flexbox related styles
- support box model related styles
- support
positionrelated styles - support
opacity,background-coloretc.
loadmore0.5: if the list scrolls to bottom, this event will be triggered immediately. You can load the next page of items in this event handler.onappear0.5: if the list's cells scroll to visible area, this event will be triggered when list is stopped. You can do something in this event handler.ondisappear0.5: if the list's cells scroll to invisible area, this event will be triggered when list is stopped. You can do something in this event handler.
common events: check out the common events
- support
clickevent. Check out common events - support
appear/disappearevent. Check out common events - support
refreshevent 0.5. If a refresh component is inside scroller, this event will be triggered when the scroller is swiping down. - support
loadingevent . If a loading component is inside scroller, this event will be triggered when user scrolling to the bottom.
see list-basic demo