[TIMOB-24863] Windows: TableView.filterAttribute does not work
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2017-11-10T03:40:45.000+0000 |
| Affected Version/s | Release 6.1.0, Release 6.1.1 |
| Fix Version/s | Release 7.0.0 |
| Components | Windows |
| Labels | n/a |
| Reporter | Ewan Harris |
| Assignee | Kota Iguchi |
| Created | 2017-06-20T15:24:00.000+0000 |
| Updated | 2017-11-16T02:26:03.000+0000 |
Description
When searching in a TableView, the results are not displayed correctly if the tableviewrow does not have a title but is just made up of child elements, all that is shown is grey empty rows
var win = Ti.UI.createWindow({
backgroundColor: '#fff'
});
var tableData = [];
for (var i = 0, l = 100; i < l; i++) {
var row = Ti.UI.createTableViewRow({
_index: i
});
var titleLabel = Ti.UI.createLabel({
text: i
});
row.add(titleLabel);
tableData.push(row);
}
var tableSearch = Ti.UI.createSearchBar({
hintText: 'Search'
});
var tableView = Ti.UI.createTableView({
data: tableData,
filterAttribute: '_index',
search: tableSearch,
});
win.add(tableView);
win.open()
I think this is because
filterAttributeproperty is not implemented on Windows. I have changed the ticket title.https://github.com/appcelerator/titanium_mobile_windows/pull/1151
Changes are seen in 7.0.0.v20171115153702.