{ "id": "125285", "key": "ALOY-936", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "15404", "description": "Alloy 2.0.0", "name": "Alloy 2.0.0", "archived": false, "released": false } ], "resolution": null, "resolutiondate": null, "created": "2014-01-23T10:21:35.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-03-07T22:26:07.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "13603", "name": "Styling", "description": "TSS, dynamic styling, styling API" } ], "description": "I'm really new in Titanium and don't really know what is the good way to purpose an improvement.\r\nI find TSS very powerfull and find the JSON notation very good.\r\nI disappointed me is the fact that alloy parse and compile the tss file, even if it seems to be json. Then the parser is limited to simple json expression, even if it is transform into real js like a copy/paste (or it seems to do this ;-))\r\nA simple example of what I would like is :\r\napp/styles/index.tss\r\n\"TextField\": {\r\n borderWidth: 2+1\r\n}\r\n\"Button\": customProjectFunction(),\r\n\r\nWhich would be \"transformed\" into \r\nResources/iphone/alloy/controllers/Login.js\r\n$.__views.txtMyTextField = Ti.UI.createTextField({\r\n borderWidth: 2+1\r\n});\r\n$.__views.txtMyButton = Ti.UI.createButton(customProjectFunction());\r\n\r\nI'm sure there are some reasons to do as it is now, but this feature would provide a very flexible way to make styles.", "attachment": [], "flagged": false, "summary": "Alloy, TSS as js not \"parsed json\"", "creator": { "name": "gduthieuw", "key": "gduthieuw", "displayName": "Guile", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "gduthieuw", "key": "gduthieuw", "displayName": "Guile", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "289428", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Let me comment quickly that I mirror many of your concerns and plan to create a more robust solution for styling in the next major version of Alloy, but it will wait until 2.0, as this will be a major change involving everything from style formatting to dynamic styling to documentation and examples of all these. It is a massive change/feature that will require a substantial amount of planning to avoid it becoming a succession of band-aid fixes.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-23T17:37:18.000+0000", "updated": "2014-01-23T17:37:18.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }