{ "id": "164034", "key": "AC-4564", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2016-10-18T09:34:43.000+0000", "created": "2016-10-18T00:23:53.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-10-18T09:34:43.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Currently, it is only possible to assign styling parameters to view elements, like width, height etc. However, it would be a lot easier if it was possible to assign CLASS parameter, which would reduce the amount of code in controllers.\r\n\r\nInstead of \r\nvar label1 = Ti.UI.createLabel({\r\n color: '#900',\r\n font: { fontSize:48 },\r\n shadowColor: '#aaa',\r\n shadowOffset: {x:5, y:5},\r\n shadowRadius: 3,\r\n text: 'A simple label',\r\n textAlign: Ti.UI.TEXT_ALIGNMENT_CENTER,\r\n top: 30,\r\n width: Ti.UI.SIZE, height: Ti.UI.SIZE\r\n});\r\n\r\nwould be a lot easier to have the below:\r\nvar label1 = Ti.UI.createLabel({\r\n class: 'myLabelClass'\r\n});", "attachment": [], "flagged": false, "summary": "Ability to assign class to a view element", "creator": { "name": "isener", "key": "isener", "displayName": "ILAY SENER", "active": true, "timeZone": "Australia/Sydney" }, "subtasks": [], "reporter": { "name": "isener", "key": "isener", "displayName": "ILAY SENER", "active": true, "timeZone": "Australia/Sydney" }, "environment": null, "comment": { "comments": [ { "id": "399209", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Classes are an Alloy concept and can only used there. If you want to add / remove a class to an alloy view, please check [addClass()|http://docs.appcelerator.com/platform/latest/#!/api/Alloy.Controller-method-addClass] and [removeClass|http://docs.appcelerator.com/platform/latest/#!/api/Alloy.Controller-method-removeClass] in the Alloy reference. Thx!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-10-18T09:34:38.000+0000", "updated": "2016-10-18T09:34:38.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }