{ "id": "154547", "key": "TIMOB-20281", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": [ { "id": "17707", "name": "Release 5.3.0", "archived": false, "released": true, "releaseDate": "2016-06-04" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-02-10T19:26:11.000+0000", "created": "2016-01-28T05:02:26.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "parity", "qe-5.3.0" ], "versions": [ { "id": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "issuelinks": [ { "id": "51500", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "159831", "key": "TIMOB-23275", "fields": { "summary": "Windows: Deprecate Ti.UI.View.enabled, rename to touchEnabled", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-04-26T20:37:33.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "Implement {{View.enabled}} property. It's undocumented property but Android has it, and it makes sens to make {{backgroundDisabledColor/Image}} property work.\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow();\r\nvar view = Ti.UI.createView({\r\n enabled: false,\r\n backgroundDisabledColor:'gray'\r\n});\r\n\r\nwin.add(view);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Windows: Implement enabled property for View", "creator": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 580, "state": "closed", "name": "2016 Sprint 3 SDK", "startDate": "2016-01-30T01:31:48.991Z", "endDate": "2016-02-13T01:31:00.000Z", "completeDate": "2016-02-15T05:32:40.725Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "376484", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile_windows/pull/555", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-02-10T07:07:40.000+0000", "updated": "2016-02-10T07:07:40.000+0000" }, { "id": "383853", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "[~gmathews] Tested on both Windows 8.1 / 10.0 devices. It seems that {{enabled}} output is inverted, setting it to {{false}} will show the view, and setting it to {{true}} will hide it.\r\n\r\nTested on: \r\nWindows 10 Pro \r\nWindows Phone 10.0 & 8.1 (Microsoft Lumia 640 LTE) \r\nAppc Studio: 4.6.0.201604081249 \r\nTi SDK: 5.3.0.v20160421080259 \r\nAppc NPM: 4.2.5-3\r\nAppc Core: 5.3.0-34 \r\nNode: v4.4.2\r\n", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-04-25T22:23:20.000+0000", "updated": "2016-04-25T22:23:20.000+0000" }, { "id": "383858", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~htbryant] Could you provide a test code for it? I think {{enabled}} property should be nothing to do with component visibility (hide/show) but component availability, for example disabling {{TextField}} should stop accepting user's input for the TextField. \r\n\r\nHere's my test code (tested on 5.3.0.v20160415121959).\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({ backgroundColor: 'green', layout: 'vertical' });\r\nvar searchText = Ti.UI.createTextField({width:Ti.UI.FILL, height: '10%', enabled: false});\r\n\r\nwin.addEventListener('open', function () {\r\n setTimeout(function () {\r\n searchText.enabled = true;\r\n }, 5000);\r\n});\r\n\r\nwin.add(searchText);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-25T23:37:49.000+0000", "updated": "2016-04-25T23:38:33.000+0000" }, { "id": "383982", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-04-26T20:36:33.000+0000", "updated": "2016-04-26T20:36:33.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }