Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

128
Views
Algolia: Change label in currentRefinements widget

I'm using the currentRefinements widget to let users select only new products.

The output of that attribute is true or false.

Here's my current code:

instantsearch.widgets.toggleRefinement({
    container: '#facet-new',
    attribute: 'new',
    //on: 'New products',
    templates: {
        labelText: 'New products',
    },
}),

If I uncomment the line

on: 'New products',

The widget wont work anymore.

But if not, the currentRefinements widget only shows true or false as label.

Is there any way to change that label?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!