new ludo.ListView(config)
ListView
Class rendering an array of JSON objects in a list.
For demo, see list.php
The list view depends on a collection data source. To update items in the list view during runtime,
update the datasource. To remove items from the list view, remove the item from the data source.
Parameters:
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object |
Properties
|
- Source:
Fires:
- ludo.ListView#swipe Fired after swiping left or right.event: Arguments: 1) JSON Object/record
- ludo.ListView#swipeRight Fired after swiping right.event: Arguments: 1) JSON Object/record
- ludo.ListView#swipeLeft Fired after swiping left.event: Arguments: 1) JSON Object/record
Methods
-
undoSwipe(record)
-
Undo swipe. This method can be called when the list item is swiped to the left
or right. It cannot be called after a record has been removed from the data source
using dataSource.remove.Parameters:
Name Type Description record
Object | String record object or record.uid(unique id)
- Source: