Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Hide table rows until search is performed

$
0
0

I have a basic SearchBar attached to a basic TableView. It works fine, but I don't want any table rows to display until the user starts typing in the search bar, so it is always filtered, and never will ALL matching rows display in the table.

var searchbar = Ti.UI.createSearchBar();
 
var tv = Ti.UI.createTableView({
        data: myData,
        search: searchbar,
        hideSearchOnSelection: false,
        filterAttribute: 'title',
});
How is it done?

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>