Hi,
I have a list where all the response of a service is mapped dynamically.
the list is visible and the datafilter is hidden.
on button click the datafilter shows using :
Apperyio("ListName").prev(".ui-filterable").show();
I want to use the data-filter-reveal attribute so the listitem hides until a user starts typing. but i don't want to add this using 'more properties attribute data-filter-reveal and value true add' in the builder, because when the page first loads i want the list to be visible. Only when the user clicks the button to show the datafilter i want the list items to hide and only be shown when a user starts to type.
I tried using on button click.
Apperio('ListName').attr("data-filter-reveal", true);
using dev tools I can see that the attribute was successfully added. but it didnt hide the list items.
how can i make the data-filter-reveal attribute work on button click?
Thank you