Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 UTC on 18 March 2024, to get $100 off your ticket.
Problem/Motivation
Currently progress indicator markup is hardcode. It will be nice to have the markup to be customizable and entered while configuring the style plugin
<div id="views_infinite_scroll-ajax-loader"><img src="' + img_path + '" alt="loading..."/></div>
Also there are use cases when Drupal behaviors need not run on page scroll. It will be nice to have an option to enable/disable it while configuring the style plugin.
Drupal.attachBehaviors(this);
Proposed resolution
Add configuration form in style settings to customize progress indicator markup and conrol Drupal.attachBehaviors
Comment | File | Size | Author |
---|---|---|---|
#1 | configurable-indicator-and-behaviors-2403583-1.patch | 7.54 KB | TechNikh |
#1 | edx_scroll_pager_options.png | 37.89 KB | TechNikh |
Comments
Comment #1
TechNikh CreditAttribution: TechNikh commentedAttaching the patch for tag 7.x-1.1
This patch adds configuration form for customizing progress indicator markup, Drupal behaviors and also addresses Accessibility.
Comment #2
Honza Pobořil CreditAttribution: Honza Pobořil as a volunteer commented