ListViewDataSource#getSectionLengths()

getSectionLengths() Returns an array containing the number of rows in each section

ListViewDataSource#getSectionIDForFlatIndex()

getSectionIDForFlatIndex(index) Gets the sectionID at index provided if the dataSource arrays were flattened, or null for out of range indexes.

ListViewDataSource#getSectionHeaderData()

getSectionHeaderData(sectionIndex) Gets the data required to render the section header

ListViewDataSource#getRowIDForFlatIndex()

getRowIDForFlatIndex(index) Gets the rowID at index provided if the dataSource arrays were flattened, or null of out of range indexes.

ListViewDataSource#getRowData()

getRowData(sectionIndex, rowIndex) Gets the data required to render the row.

ListViewDataSource#getRowCount()

getRowCount()

ListViewDataSource#getRowAndSectionCount()

getRowAndSectionCount()

ListViewDataSource#constructor()

constructor(params) You can provide custom extraction and hasChanged functions for section headers and rows. If absent, data will be extracted with the defaultGetRowData and defaultGetSectionHeaderData functions. The default extractor expects data of one of the following forms: { sectionID_1: { rowID_1: <rowData1>, ... }, ... } or { sectionID_1: [ <rowData1>, <rowData2>, ... ], ... } or [ [ <rowData1>, <rowData2>, ... ], ... ] The constructor takes in a para

ListViewDataSource#cloneWithRowsAndSections()

cloneWithRowsAndSections(dataBlob, sectionIdentities, rowIdentities) This performs the same function as the cloneWithRows function but here you also specify what your sectionIdentities are. If you don't care about sections you should safely be able to use cloneWithRows. sectionIdentities is an array of identifiers for sections. ie. ['s1', 's2', ...]. If not provided, it's assumed that the keys of dataBlob are the section identities. Note: this returns a new object!

ListViewDataSource#cloneWithRows()

cloneWithRows(dataBlob, rowIdentities) Clones this ListViewDataSource with the specified dataBlob and rowIdentities. The dataBlob is just an arbitrary blob of data. At construction an extractor to get the interesting information was defined (or the default was used). The rowIdentities is a 2D array of identifiers for rows. ie. [['a1', 'a2'], ['b1', 'b2', 'b3'], ...]. If not provided, it's assumed that the keys of the section data are the row identities. Note: This function does NOT clone the