Properties:
| Name | Type | Description |
|---|---|---|
cacheMargin |
number | (default: |
cellHeight |
number | (default: |
cellWidth |
number | (default: |
count |
number | [readonly] The amount of items. |
delegate |
fengshui.Template | The delegate template for creating items dynamically. |
model |
core.ListModel | The model to display. You may pass a number value to implicitly create a simple model. |
orientation |
string | (default: |
overflowBehavior |
string | (default: |
rendering |
bool | [readonly] |
scrollbars |
bool | (default: |
snapMode |
bool | (default: |
Extends
Methods
-
getItem (idx)core.Object
-
Returns the item with the given index number. This method may return
nullif the item is not materialized while not in view.Name Type Description idxnumber The index number.
Returns:
Type Description core.Object The item with the index number or null. -
Returns the index number of the item at the given content position.
Name Type Description xnumber The X coordinate.
ynumber The Y coordinate.
Returns:
Type Description number The index number at that coordinate. -
Returns the content coordinates of the item with the given index number.
Name Type Description idxnumber The item's index number.
Returns:
Type Description Array.<number> A tuple of the X and Y coordinates. -
Positions the view at the given item.
Name Type Description idxnumber The index of the item.