Search in a table with "tags"/"keywords"
Search in a table with "tags"/"keywords"
Hi! I am pretty this has already been discussed but I can't find it anywhere in the forum / ressources.
I have a simple datatable, with a search bar.
I would like to give the choice to my users to search either via the search bar OR via buttons that would fill automatically the search.
Let's imagine I have 3 buttons: yellow, green and blue. If people click on Yellow, I want the same result as if they typed "yellow" in the search bar. If they click on Yellow then Blue, then I want the same result as if they typed "Yellow Blue" in the search bar.
Could you guys help?
Thanks.
This question has an accepted answers - jump to answer
Answers
Hi @BenHen ,
You just need a click event on the button that issues a
search()
- something like this.Cheers,
Colin
Thank you so much @colin !!