{ "id": "160060", "key": "TIMOB-23331", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-03-24T18:37:13.000+0000", "created": "2016-05-05T14:15:42.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "17707", "name": "Release 5.3.0", "archived": false, "released": true, "releaseDate": "2016-06-04" } ], "issuelinks": [ { "id": "51623", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "153068", "key": "TIMOB-19962", "fields": { "summary": "Windows: Implement Titanium.UI.TableView footerView/footerTitle", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-04-03T17:20:19.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "Implement {{filterAttribute}}, {{filterAnchored}} and {{filterCaseInsensitive}} properties for {{Ti.UI.TableView}}.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({ backgroundColor: 'green' });\r\nvar searchBar = Ti.UI.createSearchBar();\r\nvar tableView = Ti.UI.createTableView({\r\n search: searchBar,\r\n data: [{ title: 'Apple', query: 'Manzana' }, { title: 'Banana', query: 'Banana' }, { title: 'Carrots', query: 'Zanahoria' }, { title: 'Potatoes', query: 'Patata' }],\r\n filterAnchored: false,\r\n filterCaseInsensitive: true\r\n});\r\nvar bottomView = Ti.UI.createView({\r\n bottom: 0, width: Ti.UI.FILL, height: '20%',\r\n backgroundColor: 'black', layout: 'horizontal'\r\n}),\r\nenableAnchored = Ti.UI.createSwitch({\r\n value: tableView.filterAnchored, titleOn: 'anchored On', titleOff: 'anchored Off'\r\n}),\r\nenableCaseInsensitive = Ti.UI.createSwitch({\r\n value: tableView.filterCaseInsensitive, titleOn: 'case insensitive', titleOff: 'case sensitive'\r\n}),\r\nenableAttribute = Ti.UI.createSwitch({\r\n value: false, titleOn: 'attribute On', titleOff: 'attribute Off'\r\n});\r\n\r\nenableAnchored.addEventListener('change', function () {\r\n tableView.filterAnchored = enableAnchored.value;\r\n});\r\nenableCaseInsensitive.addEventListener('change', function () {\r\n tableView.filterCaseInsensitive = enableCaseInsensitive.value;\r\n});\r\nenableAttribute.addEventListener('change', function () {\r\n if (enableAttribute.value) {\r\n tableView.filterAttribute = 'query';\r\n } else {\r\n tableView.filterAttribute = '';\r\n }\r\n});\r\n\r\nbottomView.add(enableAnchored);\r\nbottomView.add(enableCaseInsensitive);\r\nbottomView.add(enableAttribute);\r\n\r\nwin.add(tableView);\r\nwin.add(bottomView);\r\nwin.open();\r\n{code}\r\n\r\n*Expected:*\r\n\r\n* Typing `A` with `filterCaseInsensitive: true` & `filterAnchored:false` should list all items\r\n* Typing `A` with `filterCaseInsensitive: false` & `filterAnchored:false` should show only ` Apple`\r\n* Typing `A` with `filterAnchored:true` should show only `Apple`\r\n* Typing `Za` with `filterAttribute`, `filterCaseInsensitive: true` & `filterAnchored:false` should show `Apple` and `Carrots`\r\n* Typing `Za` with `filterAttribute`, `filterCaseInsensitive: true` & `filterAnchored:true` should show only `Carrots`\r\n", "attachment": [], "flagged": false, "summary": "Windows: Implement Ti.UI.TableView filter properties", "creator": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 854, "state": "closed", "name": "2017 Sprint 06 SDK", "startDate": "2017-03-12T19:14:58.337Z", "endDate": "2017-03-26T19:14:00.000Z", "completeDate": "2017-03-26T22:01:15.828Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "407149", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/953", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-02-16T06:16:02.000+0000", "updated": "2017-02-16T06:16:02.000+0000" }, { "id": "416672", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified in 6.1.0.v20170401095755. Test and other information can be found at https://github.com/appcelerator/titanium_mobile_windows/pull/953", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-04-03T17:20:10.000+0000", "updated": "2017-04-03T17:20:10.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }