{ "id": "81720", "key": "TIMOB-5826", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-06-23T23:34:32.000+0000", "created": "2011-10-18T15:27:43.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "tbs-1.9.0", "training" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-23T23:34:32.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": "The enabled property of the labels for a TabbedBar do not render the tab disabled if enabled is set to false. This only happens on creation of the TabbedBar.\r\n\r\nhttp://developer.appcelerator.com/question/122744/tabbedbar-enable-issue\r\n\r\n{code}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n// create tab group\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n//\r\n// create base UI tab and root window\r\n//\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n});\r\n \r\nvar buttonObjects = [\r\n {title:'Shows', enabled:true},\r\n {title:'Try List', enabled:true},\r\n {title:'Been List', enabled:false},\r\n];\r\n\r\nvar bb1 = Titanium.UI.createTabbedBar({\r\n labels:buttonObjects,\r\n backgroundColor:'#336699',\r\n top:0,\r\n style:Titanium.UI.iPhone.SystemButtonStyle.BAR,\r\n height:50,\r\n width:300\r\n});\r\n \r\nbb1.addEventListener('click', function(e)\r\n{\r\n\tbuttonObjects[1].enabled = false;\r\n bb1.labels = buttonObjects;\r\n});\r\n \r\nwin1.add(bb1);\r\n \r\n//\r\ntabGroup.addTab(tab1); \r\n \r\n// open tab group\r\ntabGroup.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Enabled Not Working for labels in TabbedBar", "creator": { "name": "rkpoon", "key": "rkpoon", "displayName": "rick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rkpoon", "key": "rkpoon", "displayName": "rick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Mobile SDK Version: 1.7.2\r\nMobile SDK Timestamp: 07/21/11 09:36\r\nMobile SDK Build Number: 97c3689\r\nPlatform & version: iOS 4.3 \r\nDevice Details: iOS simulator \r\nHost Operating System: OSX 10.6.7 \r\nTitanium Studio version: 1.0.2.201107130739", "comment": { "comments": [ { "id": "169919", "author": { "name": "mapperson", "key": "mapperson", "displayName": "Matthew Apperson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thank you for raising this ticket. I am afraid we need all the information listed in the [Jira Ticket Checklist|http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-Summary%3AJiraTicketChecklist] in order to accept a ticket.\r\n\r\nOnce this ticket is complete, we can move it to the main project.\r\n\r\nThank you", "updateAuthor": { "name": "mapperson", "key": "mapperson", "displayName": "Matthew Apperson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-20T13:43:46.000+0000", "updated": "2011-10-20T13:43:46.000+0000" }, { "id": "169977", "author": { "name": "rkpoon", "key": "rkpoon", "displayName": "rick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Not sure what else is missing, isn't everything from the checklist there and the problem straightforward enough?", "updateAuthor": { "name": "rkpoon", "key": "rkpoon", "displayName": "rick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-20T22:03:30.000+0000", "updated": "2011-10-20T22:03:30.000+0000" }, { "id": "170018", "author": { "name": "mapperson", "key": "mapperson", "displayName": "Matthew Apperson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Rick,\r\n\r\nPlease review the section about the code sample. The code sample should be able to simply paste into an app.js and run without any changes.\r\n\r\nBest regards,\r\nMatt", "updateAuthor": { "name": "mapperson", "key": "mapperson", "displayName": "Matthew Apperson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-21T04:31:37.000+0000", "updated": "2011-10-21T04:31:37.000+0000" }, { "id": "170074", "author": { "name": "rkpoon", "key": "rkpoon", "displayName": "rick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Complete code sample updated.", "updateAuthor": { "name": "rkpoon", "key": "rkpoon", "displayName": "rick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-21T10:27:02.000+0000", "updated": "2011-10-21T10:27:02.000+0000" }, { "id": "174261", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Due to the obvious workaround, candidate for postponement", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-29T18:16:27.000+0000", "updated": "2011-11-29T18:16:27.000+0000" }, { "id": "422701", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to the time passed and lack of progress since 2011. A workaround has been provided which is the reason why this was a candidate for postponement. Please file a new ticket if you have any problems.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-23T23:34:32.000+0000", "updated": "2017-06-23T23:34:32.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }