Hello everyone, perhaps a beginner's question, but is it possible to search in a ListView? I have around 25 posts that I want to display, and people should be able to search for the "title" of a post/ListView using a text input.
Hello,
ListView itself there is no search feature...it meant to just display the contents. However, you can filter the data that ListView is displaying.
You can utilize JS Query
, Transformer
, or Query JSON with SQL
to filter the data set based on string input from user. Or if your ~25 posts were selected from SQL then you can add WHERE to your sql to filter to what user input.
2 Likes
Many thanks for your answer. Didn't think about the WHERE functionality Thanks!
2 Likes