Skip to content

Commit d8c5219

Browse files
committed
Merge branch 'master' of github.com:nativescript-community/nativescript-collectionview
2 parents 1dd529a + cddf114 commit d8c5219

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,17 @@ There is no additional configuration needed!
6060
| itemTemplate | `string` | Gets or sets the item template of the CollectionView. |
6161
| rowHeight | `PercentLength` | Gets or sets the height for every row in the CollectionView. |
6262
| colWidth | `PercentLength` | Gets or sets the width for every column in the CollectionView. |
63+
| spanSize | `function` | Triggered when an item is loaded. Returns the number of columns that the element should occupy taking into account `colWidth` when the device is vertical and `rowHeight` when horizontal. Parameters: (item, index: number). |
64+
| scrollOffset | `number` | Gets the current scroll. |
6365

6466
### Methods
6567

6668
| Name | Return | Description |
6769
| ------------------------------------------------------ | ------ | ---------------------------------------------------------------------------------------------------------------------- |
6870
| refresh() | `void` | Forces the CollectionView to reload all its items. |
71+
| refreshVisibleItem() | `void` | Forces CollectionView to reload visible items. |
6972
| scrollToIndex(index: number, animated: boolean = true) | `void` | Scrolls the CollectionView to the item with the given index. This can be either animated or not. Defaults to animated. |
73+
| isItemAtIndexVisible(index: number) | `boolean` | Returns a boolean indicating whether the item is visible. |
7074

7175
## Usage
7276
You need to add `xmlns:gv="@nativescript-community/ui-collectionview"` to your page tag, and then simply use `<gv:CollectionView/>` in order to add the widget to your page. Use `<gv:Gridview.itemTemplate/>` to specify the template for each cell:

0 commit comments

Comments
 (0)