Can someone explain to me what Index Filters actually do in an Index Table?

Can someone explain to me what Index Filters actually do in an Index Table?

haffdolla
Shopify Partner
3 0 4

I'm working off this guide here: https://polaris.shopify.com/components/selection-and-input/index-filters?example=index-filters-with-...

 

But since the logic in the example is incomplete, I'm not sure exactly how it's supposed to work. If I click on unpaid, for example, it should show all the unpaid orders, right? But does it do this by filtering the existing list or should I make a new graphql api call? Should I be making new calls every time someone clicks a different tab? If I use the built in search bar, which says "searching in all", does this mean all filters or all products? Also why does it say save, and what are you saving? And where am I supposed to save it to? Also if a user makes a new filter and names it "snowboard", for example, where does the logic for this new filter come from? None of this makes any sense. Is there a working example somewhere?

Replies 2 (2)

Jasper_yy
Shopify Partner
2 0 0

I puzzled with the example also, and checked all the documents I could find. I can't find any useful information.

ElevateNowBrand
Shopify Partner
4 0 0

I don't know why Shopify is so bad with docs, they create code examples that do not work, or work partially, doesn't make any sense.