[TIMOB-9800] iOS: Should not exit search mode when click on tableview
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-06-26T18:37:59.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | api |
Reporter | Nikhil Sharma |
Assignee | Neeraj Gupta |
Created | 2012-06-26T01:27:39.000+0000 |
Updated | 2017-03-24T18:09:42.000+0000 |
Description
If I search for "aa" in the below code, I get to see only two rows. If I click on any of the rows, the search exits and the 4 rows gets visible again. In the real application, clicking on a row will load a new screen. The customer wants that, when you hit the back button, you come back on the table with the search still there.
var win = Titanium.UI.createWindow({
title:'Win 1',
backgroundColor:'#fff'
});
var data = [{title:"aaa"}, {title:"bbb"}, {title:"ccc"}, {title:"aab"}];
var search = Titanium.UI.createSearchBar({
hintText:'search',
cancel:false,
});
var view = Titanium.UI.createTableView({
data: data,
search: search,
});
win.add(view);
win.open();
Look at hideSearchOnSelection property of tableView
Closing ticket as invalid.