{ "id": "60738", "key": "TIMOB-106", "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": "11213", "name": "Release 0.7.0", "archived": true, "released": true, "releaseDate": "2009-10-05" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:52:00.000+0000", "created": "2011-04-15T02:23:43.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:52:00.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}
Many users have asked for a way set the back button label.
\nAPI:
\n\n\n// creating a new window\nvar win = Titanium.UI.createWindow({url:'foo.html', 'leftNavButtonLabel:'back'});\n\n// on current window\nTitanium.UI.currentWindow.setLeftNavButtonLabel('back');
\n
On the native side, the back button is actually a property of\nthe window the button is referring to. So\nTitanium.UI.currentWindow.setLeftNavButtonLabel('back') wouldn't\nchange the button on the top of the nav bar of the currentWindow,\nbut instead affect the back button of any window pushed beyond\nthat.
\nCounterProposal, since this isn't the left nav, but a back\nbutton used by sub userWindows, to have it be backButtonTitle. To\nsweeten the deal, I can also implement backButtonTitleImage, which\nhas the back button use an image at that url instead of text.
\nThis also means that the back button is a set and forget style,\nwhere it only needs to be set at one location per window.
A further snag, although not an issue in the counteroffer:
\nif Titanium.UI.currentWindow.setLeftNavButtonLabel is referring\nto the back button visible, it can not be changed (IE, back button\nMUST be set before displayed). Since\nTitanium.UI.currentWindow.setBackButtonTitle is referring to a\nfuture back button, this can be changed safely (which is\ndesired).
Implemented as backButtonTitle and backButtonTitleImage as\nproperties on initialization, but not as setting.