To implement my instantsearch.js custom refinement...
# community-help
j
To implement my instantsearch.js custom refinement list I am following the instructions from https://www.algolia.com/doc/api-reference/widgets/refinement-list/js/ But I cannot figure out how to configure various filters, like I did in the Typesense Cloud testing interface - see attached image. Here is the code I have
customeRefinementList({
container: document.querySelector('#typesensefilters'),
attribute: 'categories',
showMoreLimit: 20,
})
j
You'd just want to create one
refinementList
widget for each of those attributes
👍 1
j
Wow! But can it use the same render function?
j
same render function - yes. But you'd have to create separate dom elements for each filter
👍 1
Notice how there's separate refinementLists and separate dom elements for each filter: https://github.com/typesense/showcase-linux-commits-search/blob/40e440e4c9323340ab5584b501a407d001a5354b/src/app.js#L300-L375
👍 1
j
OK, thanks a lot, your help was starship fast today! 😃
😁 1