Whether to scroll the non-list part on the top of the list page out of the visible area with the list. The value can be true (scrolls the non-list part out) or false (does not scroll the non-list part out). This attribute is not available when the direction is row. |
||||
Minimum number of cached list items when the long list is loaded with delay. When the number of list items cached outside the visible area is less than the value of this attribute, a requestitem event is triggered. |
||||
Display mode of the side scrollbar. (Currently, only the vertical scrollbar is supported.) |
||||
Scroll effect. Available values are as follows:
|
||||
Whether to display the alphabetical index bar on the sidebar. If this attribute is set to true or a customized indexer, the index bar is displayed at the right boundary of the list. Example: "indexer" : "true" indicates the default alphabetical indexer. "indexer" : "false" indicates no indexer. "indexer": ['#', '1', '2', '3', '4', '5', '6', '7', '8'] indicates a customized index. You must include "#" when using a customized indexer. NOTE:
|
||||
Whether to use a circle indexer. The default value is true for wearables and false for other device types. This attribute is invalid if indexer is set to false. |
||||
Whether to display the bubble effect when switching among indexes. |
||||
Whether list items are separated by dividers. For details about divider styles, see divider-color, divider-height, divider-length, and divider-origin in the Styles table. |
||||
Whether to cancel the zoom-in and zoom-out effects of the focus. This attribute takes effect only on wearables and smart TVs. |
||||
Whether there is always an item at the center of the cross axis of the view for the initialization page and a page after scrolling. This attribute applies only to wearables. |
||||
Whether a dynamic effect is displayed when an item in the list is deleted or added. |
||||
Whether to display chained animations on this list when it slides or its top and bottom are dragged. The list items are separated with even space, and one item animation starts after the previous animation during basic sliding interactions. The chained animation effect is similar with spring physics. |
||||
Whether the device vibrates when the list is scrolled. This attribute takes effect only for wearables. |
||||
Item to be displayed at the start position of the viewport when the current list is loaded for the first time. The default value is 0, indicating that the first item is displayed. The setting does not take effect in any of the following cases: |
||||
Start offset of the viewport when the current list is loaded for the first time. The offset must not exceed the scrolling range of the current list. If exceeded, the offset is truncated to the maximum value of the scrolling range. This attribute does not take effect if indexer or scrollpage is set to true. |
||||
Selected item in the current list. The value can be a section value of any list items. |
Scrolls the list to the position of the item at the specified index. |
||
If smooth is set to false (default value), the list is directly scrolled to the top. If smooth is set to true, the list is smoothly scrolled to the top. |
||
If smooth is set to false (default value), the list is directly scrolled to the bottom. If smooth is set to true, the list is smoothly scrolled to the bottom. |
||
If reverse is set to false (default value), the next page is displayed. If there is no next page, the list scrolls to the bottom. If reverse is set to true, the previous page is displayed. If there is no previous page, the list scrolls to the top. If smooth is set to false (default value), the list is directly scrolled to another page. If smooth is set to true, the list is smoothly scrolled to another page. |
||
If reverse is set to false (default value), the list scrolls towards the bottom for a certain distance. If there is no sufficient distance, the list scrolls to the bottom. If reverse is set to true, the list scrolls towards the top for a certain distance. If there is no sufficient distance, the list scrolls to the top. If smooth is set to false (default value), the list is directly scrolled. |
||
Returns the offset of the current scrolling. The return value type is Object. For details, see Table 2. |