_onFetch(page = 1, callback, options) {

    console.log('_onFetch','page->',page);
    setTimeout(() => {
      var rows = ['row '+((page - 1) * 3 + 1), 'row '+((page - 1) * 3 + 2), 'row '+((page - 1) * 3 + 3)];
      if (page === 3) {
        callback(rows, {
          allLoaded: true, // the end of the list is reached
        });        
      } else {
        callback(rows);
      }
    }, 1000); // simulating network fetching
  }
/**
   * Will be called when refreshing
   * Should be replaced by your own logic
   * @param {number} page Requested page to fetch
   * @param {function} callback Should pass the rows
   * @param {object} options Inform if first load
   */
Will be called when refreshing
Should be replaced by your own logic
@param {number} page Requested page to fetch
@param {function} callback Should pass the rows
@param {object} options Inform if first load
Will be called when refreshing Should be replaced by your own logic @param { number } page Requested page to fetch @param { function } callback Should pass the rows @param { object } options Inform if first load
_onFetch(page = 1, callback, options) {
    console.log('_onFetch','page->',page);
    setTimeout(() => {
      var rows = ['row '+((page - 1) * 3 + 1), 'row '+((page - 1) * 3 + 2), 'row '+((page - 1) * 3 + 3)];
      if (page === 3) {
        callback(rows, {
          allLoaded: true, 
        });        
      } else {
        callback(rows);
      }
    }, 1000); 
  }
_onFetch ( page = 1 , callback , options ) { console . log ( '_onFetch' , 'page->' , page ) ; setTimeout ( ( ) => { var rows = [ 'row ' + ( ( page - 1 ) * 3 + 1 ) , 'row ' + ( ( page - 1 ) * 3 + 2 ) , 'row ' + ( ( page - 1 ) * 3 + 3 ) ] ; if ( page === 3 ) { callback ( rows , { allLoaded : true , } ) ; } else { callback ( rows ) ; } } , 1000 ) ; }
Will be called when refreshing
 Should be replaced by your own logic
 @param {number} page Requested page to fetch
 @param {function} callback Should pass the rows
 @param {object} options Inform if first load
Will be called when refreshing Should be replaced by your own logic @param { number } page Requested page to fetch @param { function } callback Should pass the rows @param { object } options Inform if first load
// the end of the list is reached // simulating network fetching