Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24007] iOS: Selected color not available in Ti.UI.ListItem

GitHub Issuen/a
TypeImprovement
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2016-10-10T06:14:42.000+0000
Affected Version/sRelease 5.5.1
Fix Version/sRelease 6.0.0
ComponentsiOS
Labelsqe-6.0.0
ReporterHans Knöchel
AssigneeHans Knöchel
Created2016-10-09T17:11:58.000+0000
Updated2016-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.

Comments

  1. Hans Knöchel 2016-10-09

    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();
       
  2. Chee Kiat Ng 2016-10-10

    CR and FT passed. backport please.
  3. Harry Bryant 2016-10-12

    Verified as fixed, selectedColor property 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.*

JSON Source