Closed mohamedhyouns closed 1 month ago
Thank you for your suggestion, for integration I refer you to the README where you'll learn that integration is very simple, all that is required is a range input coupled with optional data attributes for min, max, and step parameters.
jQuery is very old and nobody should be creating new projects with it. The reason we created this new slider plugin is Drupal's adoption of jQuery 4 which deprecates many jQuery features, so we will not add a jQuery plugin wrapper.
Summary
The DXPR slider currently lacks an integration-friendly API, making it difficult to incorporate into a real codebase despite functioning well in a technical demo.
Problem
Efforts to integrate the DXPR slider into the DXPR codebase have proven challenging due to its poor integration capabilities. Unlike the Bootstrap slider, which offers a straightforward API, the DXPR slider lacks a similar interface. For instance, the Bootstrap slider provides easy integration with both JQuery and vanilla JavaScript:
Suggestion
To improve integration, I propose the following modifications to the DXPR slider:
max
andmin
.The changes
Patch