{ "id": "62671", "key": "TIMOB-2039", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-07-20T13:53:05.000+0000", "created": "2011-04-15T03:08:47.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "training" ], "versions": [], "issuelinks": [ { "id": "19049", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "61509", "key": "TIMOB-877", "fields": { "summary": "iOS: TextField editable:false not implemented", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "19050", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "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": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T23:13:19.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}
I have a textfield with both enabled and editable set to false.\r\nHowever, when it's shown, it's still editable and enabled.
\r\nCode:
var tagcomment = Titanium.UI.createTextField({
\r\nvalue:'',\r\nheight:'35px',\r\nwidth:300,\r\nborderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED,\r\ntop:100,\r\nhintText: 'Enter a Tag',
\r\n
\r\nclearButtonMode: Titanium.UI.INPUT_BUTTONMODE_ALWAYS,
\r\neditable: false,\r\nenabled: false
\r\n
\r\n}); tagview.add(tagcomment);
I have the same problem on iPad.
Needs to be tested with permutations of editable/enabled; some\nof them are kind of ugly (e.g. editable=false;enabled=true).
\nvar win = Ti.UI.createWindow({ backgroundColor: '#fff' });\nvar scroll = Ti.UI.createScrollView({ layout: 'vertical' });\nwin.add(scroll);\n\nscroll.add(Titanium.UI.createTextField({\n value:'Neither property, normal text field',\n height:35,\n right: 10,\n top: 10,\n borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED\n}));\nscroll.add(Titanium.UI.createTextField({\n value:'Editable: false',\n editable: false,\n height:35,\n right: 10,\n top: 10,\n borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED\n}));\nscroll.add(Titanium.UI.createTextField({\n value:'Editable: true',\n editable: true,\n height:35,\n right: 10,\n top: 10,\n borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED\n}));\nscroll.add(Titanium.UI.createTextField({\n value:'Enabled: false',\n enabled: false,\n height:35,\n right: 10,\n top: 10,\n borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED\n}));\nscroll.add(Titanium.UI.createTextField({\n value:'Enabled: true',\n enabled: true,\n height:35,\n right: 10,\n top: 10,\n borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED\n}));\nscroll.add(Titanium.UI.createTextField({\n value:'Enabled: false + Editable: false',\n enabled: false,\n editable: false,\n height:35,\n right: 10,\n top: 10,\n borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED\n}));\nscroll.add(Titanium.UI.createTextField({\n value:'Enabled: true + Editable: true',\n enabled: true,\n editable: true,\n height:35,\n right: 10,\n top: 10,\n borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED\n}));\nscroll.add(Titanium.UI.createTextField({\n value:'Enabled: true + Editable: false',\n enabled: true,\n editable: false,\n height:35,\n right: 10,\n top: 10,\n borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED\n}));\nscroll.add(Titanium.UI.createTextField({\n value:'Enabled: false + Editable: true',\n enabled: false,\n editable: true,\n height:35,\n right: 10,\n top: 10,\n borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED\n}));\n\nwin.open();
\n