Represents a view that shows items in a vertically scrolling list.
Summary Constructors Properties Gets the native [android widget](http://developer.android.com/reference/android/widget/ListView.html) that represents the user interface for this component. Valid only when running on Android OS.
Gets the native [iOS view](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITableView_Class/) that represents the user interface for this component. Valid only when running on iOS.
Gets or set the estimated height of rows in the ListView. The default value is 44px.
itemIdGenerator: (item: any, index: number, items: any) => number
Gets or set the item template of the ListView.
itemTemplateSelector: string | (item: any, index: number, items: any) => string
A function that returns the appropriate ket template based on the data item.
Gets or set the list of item templates for the item template selector
Gets or set the items collection of the ListView. The items property can be set to an array or an object defining length and getItem(index) method.
Gets or set row height of the ListView.
Gets or set the items separator line color of the ListView.
String value used when hooking to itemLoading event.
String value used when hooking to itemTap event.
loadMoreItemsEvent Static
loadMoreItemsEvent: string
String value used when hooking to loadMoreItems event.
Methods isItemAtIndexVisible(index: number): boolean
Checks if Specified item with index is visible.
Returns boolean
on(eventNames: string, callback: (data: EventData) => void, thisArg?: any): void
A basic method signature to hook an event listener (shortcut alias to the addEventListener method).
Returns void
on(event: "itemLoading", callback: (args: ItemEventData) => void, thisArg?: any): void
Raised when a View for the data at the specified index should be created. The result should be returned trough the view property of the event data. Note, that the view property of the event data can be pre-initialized with an old instance of a view, so that it can be reused.
Returns void
on(event: "itemTap", callback: (args: ItemEventData) => void, thisArg?: any): void
Raised when an item inside the ListView is tapped.
Returns void
on(event: "loadMoreItems", callback: (args: EventData) => void, thisArg?: any): void
Raised when the ListView is scrolled so that its last item is visible.
Returns void
Forces the ListView to reload all its items.
Returns any
scrollToIndex(index: number): any
Scrolls the specified item with index into view. [iOS](https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UITableView_Class/#//apple_ref/occ/instm/UITableView/scrollToRowAtIndexPath:atScrollPosition:animated:) [Android](http://developer.android.com/reference/android/widget/ListView.html#setSelection(int))
Returns any
scrollToIndexAnimated(index: number): any
Scrolls the specified item with index into view with animation. [iOS](https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UITableView_Class/#//apple_ref/occ/instm/UITableView/scrollToRowAtIndexPath:atScrollPosition:animated:) [Android](https://developer.android.com/reference/android/widget/ListView.html#smoothScrollToPosition(int))
Returns any
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4