signalpoint / views_infinite_scroll

The Views Infinite Scroll module for DrupalGap.
GNU General Public License v2.0
2 stars 2 forks source link

Adding Class to Views Breaks Views Infinite Scroll #11

Closed mkinnan closed 7 years ago

mkinnan commented 7 years ago

Adding a class causes the Views Infinite Scroll to break. The pagers are still hidden but when you reach the bottom of the page nothing happens.

function my_module_findpastevents_page() {
  try {
    var content = {};

      content['find_past_events'] = {
        theme: 'view',
        format: 'ul',
        pager_pos: 'bottom',
        path: 'events', /* the path to the view in Drupal */
        row_callback: 'my_module_findpastevents_list_row',
        empty_callback: 'my_module_findpastevents_list_empty',
        attributes: {
          'class': 'myextrarowclass'
        }
      };

    return content;

  }
  catch (error) { console.log('my_module_findpastevents_page - ' + error); }
}
mkinnan commented 7 years ago

See example here to add class to views rows: https://www.reinisfischer.com/drupalgap-native-app-part-2-creating-and-linking-custom-views-listing-page