[TIMOB-24007] iOS: Selected color not available in Ti.UI.ListItem
| GitHub Issue | n/a |
|---|---|
| Type | Improvement |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2016-10-10T06:14:42.000+0000 |
| Affected Version/s | Release 5.5.1 |
| Fix Version/s | Release 6.0.0 |
| Components | iOS |
| Labels | qe-6.0.0 |
| Reporter | Hans Knöchel |
| Assignee | Hans Knöchel |
| Created | 2016-10-09T17:11:58.000+0000 |
| Updated | 2016-10-12T16:45:28.000+0000 |
Description
We have the
selectedColor property in the [Ti.UI.TableViewRow](http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.TableViewRow-property-selectedColor) and should also have it in the Ti.UI.ListItem to alloy custom theming of native cells without custom cell-templates.
PR (master): https://github.com/appcelerator/titanium_mobile/pull/8491 PR (6_0_X): https://github.com/appcelerator/titanium_mobile/pull/8492 Test-Case:
var win = Ti.UI.createWindow({ backgroundColor: "#fff" }); win.add(Ti.UI.createListView({ sections: [Ti.UI.createListSection({ items: [{ properties: { title: "Test 1", selectedColor: "red", selectedBackgroundColor: "green" } },{ properties: { title: "Test 2", selectedColor: "green", selectedBackgroundColor: "red" } }] })] })); win.open();CR and FT passed. backport please.
Verified as fixed,
selectedColorproperty is now supported on iOS. Tested On: iPhone 6 Plus 10.0.2 Device & Simulator iPhone 5S 9.3.5 Device & Simulator Mac OS Sierra (10.12) Ti SDK: 6.0.0.v20161012041242 Appc Studio: 4.8.0.201610060953 Appc NPM: 4.2.8-7 App CLI: 6.0.0-57 Xcode 8.0 Node v4.4.7 *Closing ticket.*