Hey all,
Just trying to make a simple table because Wix still doesn’t have a passable table feature in 2020. I’ve taken a stab at some coding and was able to make a table’s columns generate as outlined in the columns code tutorial . I’ve then added buttons to my site to allow users to filter my dataset as desired as outlined in the setFilter tutorial.
My question is how I can “undo” a filter that was added through setFilter()? It doesn’t seem like there’s an “unFilter” option available. So if a user can apply Filter(s) A, B, and/or C, I can’t add logic that will seemingly let them pick any random two.
I also want to throw in a question for stacking setSort() 's. Again, users have 2 different Sort methods with 2 options in each Sort method, and I want them to be able to pick [A-Z || Z-A] as well as [1-10 || 10-1]. But without making a new option for both of those sort criteria, I can’t seem to find a way of combining two user choices ad-hoc.
Thanks! Let me know if I’m just missing a fundamental to combining inputs and I’m happy to learn. I just wanted to focus on this one aspect of scripting without having to learn a whole language to make a simple table on my page.