{ "id": "164286", "key": "TIMOB-24085", "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": "2016-11-03T10:11:17.000+0000", "created": "2016-10-30T10:30:20.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2016-11-21T19:38: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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "We have some really cool system list view item templates since 3.x that allow the user to use native styles for their cells, e.g.\r\n- {{Ti.UI.LIST_ITEM_TEMPLATE_CONTACTS}}\r\n- {{Ti.UI.LIST_ITEM_TEMPLATE_SETTINGS}}\r\n- {{Ti.UI.LIST_ITEM_TEMPLATE_SUBTITLE}}\r\n\r\nAlthough we can already tint the title of those using the {{color}} property that is mapped to it, the subtitle cannot be tinted, yet. Introducing a {{subtitleColor}} and {{selectedSubtitleColor}} property along with the existing properties {{color}} and {{selectedColor}} would allow this through all system templates and would not influence any other API's, so it's save to implement.\r\n", "attachment": [], "flagged": false, "summary": "iOS: Add ability to style subtitle in native UITableViewCell templates", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 741, "state": "closed", "name": "2016 Sprint 22 SDK", "startDate": "2016-10-22T00:02:29.945Z", "endDate": "2016-11-05T00:02:00.000Z", "completeDate": "2016-11-07T04:38:58.335Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "400066", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/8565\r\nUnit-Test: https://github.com/appcelerator/titanium-mobile-mocha-suite/pull/9\r\n\r\nTest-case:\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: \"#fff\"\r\n});\r\n\r\nvar list = Ti.UI.createListView({\r\n\tsections: [Ti.UI.createListSection({\r\n\t\titems: [{\r\n\t\t\ttemplate: Ti.UI.LIST_ITEM_TEMPLATE_CONTACTS,\r\n\t\t\tproperties: {\r\n\t\t\t\ttitle: \"My Title\",\r\n\t\t\t\tsubtitle: \"My Subtitle\",\r\n\t\t\t\tcolor: \"blue\",\r\n\t\t\t\tsubtitleColor: \"red\",\r\n\t\t\t\tselectedColor: \"green\",\r\n\t\t\t\tselectedSubtitleColor: \"green\"\r\n\t\t\t}\r\n\t\t},{\r\n\t\t\ttemplate: Ti.UI.LIST_ITEM_TEMPLATE_SUBTITLE,\r\n\t\t\tproperties: {\r\n\t\t\t\ttitle: \"My Title\",\r\n\t\t\t\tsubtitle: \"My Subtitle\",\r\n\t\t\t\tcolor: \"blue\",\r\n\t\t\t\tsubtitleColor: \"red\",\r\n\t\t\t\tselectedColor: \"green\",\r\n\t\t\t\tselectedSubtitleColor: \"green\"\r\n\t\t\t}\r\n\t\t},{\r\n\t\t\ttemplate: Ti.UI.LIST_ITEM_TEMPLATE_SETTINGS,\r\n\t\t\tproperties: {\r\n\t\t\t\ttitle: \"My Title\",\r\n\t\t\t\tsubtitle: \"My Subtitle\",\r\n\t\t\t\tcolor: \"blue\",\r\n\t\t\t\tsubtitleColor: \"red\",\r\n\t\t\t\tselectedColor: \"green\",\r\n\t\t\t\tselectedSubtitleColor: \"green\"\r\n\t\t\t}\r\n\t\t}]\r\n\t})]\r\n});\r\n\r\nwin.add(list);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-10-30T10:50:17.000+0000", "updated": "2016-11-01T16:44:29.000+0000" }, { "id": "401639", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Used this environment for the fix:\r\nNPM Version: 2.15.9\r\nNode Version: 4.5.0\r\nMac OS: 10.12.1\r\nAppc CLI: 6.0.0\r\nAppc CLI NPM: 4.2.8\r\nTitanium SDK version: 6.1.0.v20161121004950\r\nAppcelerator Studio, build: 4.8.0.201611121409\r\nXcode 8.1 GM\r\n\r\nI installed the demo code on both Simulator and Device. I observed three list items were created, and that subtitle color can be set independently. Furthermore, when I selected any list item , the color for the main text and the subtitled text turned green. When I selected a different list item, the new items turned green, and the item I clicked away from returned to blue for the main text, and red for the subtitled text. The improvement appears to work as expected.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-11-21T19:38:10.000+0000", "updated": "2016-11-21T19:38:10.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }