I've created a module called Facets Range Input. Code is mostly inspired by the range slider sub-module. Currently, it requires the attached patch to work properly.

Module page for range input: https://www.drupal.org/project/facets_range_input

Is there a way to plug into the js api for modules like this?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alexandersluiter created an issue. See original summary.

borisson_’s picture

Issue tags: +Novice

This looks really cool!

A novice could upload a patch here to add this project to the readme.txt, similar to what happened over in #3006950.

alexandersluiter’s picture

No need for any of the other patches now that the Javascript API is coming together. This small patch is all that's needed in order to tell the JS API to skip updating the range input form blocks.

alexandersluiter’s picture

borisson_’s picture

Ok so that means we're probably should commit this small change. I will create a new issue for the readme.txt update.

borisson_’s picture

Status: Active » Needs review

Go testbot, go!

borisson_’s picture

geek-merlin’s picture

heddn’s picture

Bump

borisson_’s picture

Status: Needs review » Fixed

@heddn: Was that a reminder to commit this, or something else? Setting to rtbc is a more effective indicator of that.

In any case, I totally forgot about this issue. I committed #4.

dench0’s picture

Status: Fixed » Needs review
FileSize
504 bytes

The last commit can break view ajax executing if drupalSettings.facets is undefined.
For example, on page exist only List of links widget with soft_limit = 0. In this case drupalSettings.facets is absent and this checking will trow a TypeErrorwith message "settings.facets is undefined".

  • borisson_ committed be2b9dd on 8.x-1.x authored by dench0
    Issue #3034918 by alexandersluiter, dench0, borisson_: Followup - Add...
borisson_’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.