question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Struggling with currentRefinedValues

See original GitHub issue

Hi there,

I´m trying to show the currentRefinedValues in the facet column with the currentRefinedValues widget. Displaying and functionality is fine, but I can´t customize the options for that widget. According to the documentation for my understanding this should work:

me.search.addWidget(
            instantsearch.widgets.currentRefinedValues({
                container: '#currentRefinedValues',
                clearAll: 'after',
                options: [{
                    cssClasses: [{
                        root: 'xxx',
                        body: 'bodytest',
                        clearAll: 'clearAllTest',
                        item: 'filter--active'
                    }],
                    templates: [{
                        header: '<h1>test</h1>'
                    }],
                }]
            })
        );

However, the “root” options (clearAll, container) work as expected but the parameters in the “options” array are completely ignored.

Has anybody a hint for me what is wrong with my configuration?

Thanks a lot, Synonymous

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
vvocommented, Nov 29, 2016

Hi @synonymous1984, inside item template to easily see what are the options you can do item: function() {console.log(arguments)}

0reactions
bobylitocommented, Jul 1, 2017

Closing for now. The V2 documentation tries to be more exhaustive, if it’s still not enough we’ll work harder 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

currentRefinedValues not clearing - Open Q&A
I'm using the instantsearch.widgets.currentRefinedValues widget but for some reason it doesn't clear the refined values I've set by default (via ...
Read more >
algolia/instantsearch: connectMenu refine() remove current ...
The reason why I'd like to do this is because otherwise currentRefinedValues widget shows an attribute as refined even if it's not.
Read more >
Fire Science Degree Programs in South Carolina: Firefighter ...
With plenty of variety for career and volunteer firefighters in municipal and rural areas, plus training opportunities for those interested in wildland ...
Read more >
Fire Science Degree Programs in Florida | Firefighter Training (2022)
currentRefinedValues ({ container: '.algolia-ipeds ... To stay current on fire-fighting conditions in the state, firefighters may also look to the Florida ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found