{ "id": "176186", "key": "TIMOB-28444", "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": [ { "id": "21050", "name": "Release 10.0.0", "archived": false, "released": true, "releaseDate": "2021-05-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-05-12T21:53:35.000+0000", "created": "2021-05-12T15:22:06.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "21050", "name": "Release 10.0.0", "archived": false, "released": true, "releaseDate": "2021-05-17" } ], "issuelinks": [], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2021-05-12T21:53:35.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": "10202", "name": "Android", "description": "Android Platform" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h5.Description\r\n\r\nThere are a handful of setters with 2 arguments missing since the setter/getter removal, these should still be maintained as they are not simple setters.\r\n\r\n* Android\r\n** -Ti.UI.Slider.setValue- (2 arg version is iOS only I think, so maybe mark iOS only?) documentation is invalid here\r\n* iOS\r\n** -TiUI.Picker.setValue- documentation is invalid here\r\n**- Ti.UI.TabGroup.setToolbar- documentation is invalid here\r\n** Ti.UI.Window.setToolbar\r\n** -Ti.UI.iOS.SplitWindow.setToolbar- documentation is invalid here\r\n** Ti.UI.iOS.SplitWindow.setShowMasterInPortrait\r\n** Ti.UI.iOS.SplitWindow.setMasterIsOverlayed\r\n\r\n{code}\r\nvar win1 = Ti.UI.createWindow();\r\nvar tab1 = Ti.UI.createTab({\r\n window: win1,\r\n title: 'Tab 1'\r\n});\r\nvar win2 = Ti.UI.createWindow({\r\n backgroundColor: 'yellow'\r\n});\r\nvar tab2 = Ti.UI.createTab({\r\n window: win2,\r\n title: 'Tab 2'\r\n});\r\nvar tabGroup = Ti.UI.createTabGroup();\r\ntabGroup.addTab(tab1);\r\ntabGroup.addTab(tab2);\r\ntabGroup.open();\r\n\r\n\r\nsetTimeout(() => {\r\n console.log('ListSection')\r\n var vegSection = Ti.UI.createListSection({ headerTitle: 'Vegetables', items: [] })\r\n console.log(vegSection.setItems);\r\n\r\n console.log('Slider')\r\n var slider = Ti.UI.createSlider()\r\n console.log(slider.setValue)\r\n\r\n console.log('WebView')\r\n var wv = Ti.UI.createWebView()\r\n console.log(wv.setHtml)\r\n\r\n if (OS_ANDROID) {\r\n\r\n } else if (OS_IOS) {\r\n console.log('Picker')\r\n var picker = Ti.UI.createPicker()\r\n console.log(picker.setValue)\r\n \r\n console.log('TabGroup')\r\n console.log(tabGroup.setToolbar)\r\n\r\n console.log('Window')\r\n console.log(win1.setToolbar)\r\n\r\n\r\n console.log('SplitWindow')\r\n var splitWin = Ti.UI.iOS.createSplitWindow({\r\n detailView: win1,\r\n masterView: win2\r\n });\r\n console.log(splitWin.setToolbar)\r\n console.log(splitWin.setShowMasterInPortrait())\r\n console.log(splitWin.setMasterIsOverlayed)\r\n }\r\n}, 2500)\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\nh5.Actual\r\n\r\nSome logs show undefined\r\n\r\nh5.Expected\r\n\r\nNo logs should show undefined", "attachment": [], "flagged": false, "summary": "TiAPI: Missing setters with 2 arguments", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": null, "closedSprints": [ { "id": 1223, "state": "closed", "name": "2021 Sprint 9", "startDate": "2021-04-26T15:14:42.215Z", "endDate": "2021-05-07T15:14:00.000Z", "completeDate": "2021-05-17T16:30:45.852Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "458673", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/12806", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2021-05-12T16:27:21.000+0000", "updated": "2021-05-12T16:27:21.000+0000" }, { "id": "458674", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Window.setToolbar test - No error thrown, toolbar should be at bottom of Window\r\n{code}\r\nvar win = Ti.UI.createWindow({backgroundColor: 'white'});\r\nvar nav = Ti.UI.createNavigationWindow({window: win}); \r\nwin.setToolbar([Ti.UI.createButton({title: \"Toolbar\"})],{animated: false});\r\nnav.open();\r\n{code}\r\n\r\nSplitWindow.setShowMasterInPortrait/setMasterIsOverlayed - Click detail window, main should show, click main and detail should move\r\n\r\n{code}\r\nvar detail = Ti.UI.createWindow({ backgroundColor: 'white' });\r\nvar label1 = Ti.UI.createLabel({ text: 'Detail View' });\r\ndetail.add(label1);\r\nvar detailNav = Ti.UI.createNavigationWindow({ window: detail });\r\nvar main = Ti.UI.createWindow({ backgroundColor: 'gray' });\r\nvar label2 = Ti.UI.createLabel({ text: 'Main View' });\r\nmain.add(label2);\r\nvar mainNav = Ti.UI.createNavigationWindow({ window: main });\r\nvar splitWin = Ti.UI.iOS.createSplitWindow({\r\n detailView: detailNav,\r\n masterView: mainNav\r\n});\r\nsplitWin.open();\r\ndetail.addEventListener('click', () => {\r\n splitWin.setShowMasterInPortrait(true, {animated: true})\r\n})\r\nmain.addEventListener('click', () => {\r\n splitWin.setMasterIsOverlayed(true, {animated: true})\r\n})\r\n{code}\r\n\r\nThe rest are docs fixes so no code tests", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2021-05-12T18:26:41.000+0000", "updated": "2021-05-12T18:26:41.000+0000" }, { "id": "458675", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master and 10_0_X branch for 10.0.0 target.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2021-05-12T21:53:32.000+0000", "updated": "2021-05-12T21:53:32.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }