Closed mkinnan closed 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); } }
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
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.