Vue Js ais-numeric-menu count #4822
-
I have an ais-numeric component that i want to use and it would be useful if we had count so that we show a label nd count side by side I have this
which doesn't return a count. Is there a way i can return a count? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Unfortunately numbers are infinite, so we can't actually show a count of all the buckets. The workaround is making sure the ranges are available ahead of time. You can do that by making your record something like this: [
{
"range": "5 - 10"
},
{
"range": "10 - 15"
}
] If you make that range attribute an |
Beta Was this translation helpful? Give feedback.
Unfortunately numbers are infinite, so we can't actually show a count of all the buckets. The workaround is making sure the ranges are available ahead of time. You can do that by making your record something like this:
If you make that range attribute an
attributeForFaceting
, you can use menu or refinement-list for refining with a count available.