{ "id": "119799", "key": "TIMOB-16051", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": [], "resolution": null, "resolutiondate": null, "created": "2013-09-11T20:28:38.000+0000", "priority": null, "labels": [ "accessoryview", "ios", "listview", "listviewitem" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:53.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "Potential use case\r\n\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({backgroundColor: 'white'});\r\nvar basicSwitch = Ti.UI.createSwitch({\r\n value:true\r\n});\r\nbasicSwitch.addEventListener('change',function(e){\r\n Ti.API.info('Switch value: ' + basicSwitch.value);\r\n});\r\nvar data = [\r\n {\r\n properties: {\r\n title: 'Title',\r\n image: 'KS_nav_views.png', // not used by this template\r\n accessoryView: basicSwitch\r\n },\r\n template: Ti.UI.LIST_ITEM_TEMPLATE_DEFAULT\r\n }\r\n];\r\n\r\nvar listSection = Ti.UI.createListSection({items: data});\r\nvar listView = Ti.UI.createListView({sections: [listSection]});\r\nwin.add(listView);\r\nwin.open();\r\n{code}\r\n\r\nPotential Alloy XML Markup\r\n{code}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}", "attachment": [ { "id": "42407", "filename": "photo.PNG", "author": { "name": "troscoe", "key": "troscoe", "displayName": "Tristan Roscoe", "active": true, "timeZone": "America/New_York" }, "created": "2013-09-11T20:28:38.000+0000", "size": 69949, "mimeType": "image/png" } ], "flagged": false, "summary": "Titanium.UI.ListItem.accessoryView", "creator": { "name": "troscoe", "key": "troscoe", "displayName": "Tristan Roscoe", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "troscoe", "key": "troscoe", "displayName": "Tristan Roscoe", "active": true, "timeZone": "America/New_York" }, "environment": "OSX 10.8.4\r\nXcode Version 5.0 (5A1412)\r\nTitanium CLI 3.1.2\r\nAlloy 1.3.0\r\nSDK 3.1.3.RC", "comment": { "comments": [ { "id": "272076", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nCan you add more details? What you want to add as new features? \r\n\r\nThanks\r\n", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2013-09-20T05:42:15.000+0000", "updated": "2013-09-20T05:42:15.000+0000" }, { "id": "281799", "author": { "name": "a.suchariya", "key": "a.suchariya", "displayName": "AvtarSingh Suchariya", "active": true, "timeZone": "Asia/Kolkata" }, "body": "It is saying that the List Item in side the list view show have default property to add Switch as list type as it is available in attached screenshot for Airplane mode. Right now we have subview (>) checkmark (Right sine), etc.", "updateAuthor": { "name": "a.suchariya", "key": "a.suchariya", "displayName": "AvtarSingh Suchariya", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-11-28T21:19:50.000+0000", "updated": "2013-11-28T21:19:50.000+0000" }, { "id": "282801", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is a valid feature request so moving it to engineering. Titanium.UI.ListItem.accessoryType currently supports one of the following: \r\nTitanium.UI.LIST_ACCESSORY_TYPE_CHECKMARK \r\nTitanium.UI.LIST_ACCESSORY_TYPE_DETAIL \r\nTitanium.UI.LIST_ACCESSORY_TYPE_DISCLOSURE\r\nTitanium.UI.LIST_ACCESSORY_TYPE_NONE (Default)\r\n\r\nThis is a feature request to add Titanium.UI.LIST_ACCESSORY_TYPE_SWITCH to implement the functionality similar to airplane mode on most phones.\r\n\r\n", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-06T05:46:22.000+0000", "updated": "2013-12-19T06:33:59.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }