{ "id": "154599", "key": "TIMOB-20295", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-02-02T20:57:34.000+0000", "created": "2016-01-31T00:20:59.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "qe-.5.4.0", "searchbar" ], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-05-24T18:46:13.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": "Hi guys,\r\ncan you please implement new feature - abbility to change/localize SearchBar Cancel button title? It can be done in Swift/ObjC via child views of searchbar, but it's not implemented in Appcelerator/Ti SDK.\r\nI wrote a post to StackOverflow [link here:|http://stackoverflow.com/questions/35046988/ios-appcelerator-studio-how-to-translate-cancel-button-on-searchbar/35095589#35095589]\r\nThank you", "attachment": [], "flagged": false, "summary": "iOS: Support SearchBar button title", "creator": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "subtasks": [], "reporter": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "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": "375599", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/7659\r\n\r\nDemo:\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar searchBar = Ti.UI.createSearchBar({\r\n\tcancelButtonTitle: \"Custom\"\r\n});\r\n\r\nvar list = Ti.UI.createListView({\r\n top: 20,\r\n\tsearchView: searchBar\r\n});\r\n\r\nwin.add(list);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-02-01T13:43:45.000+0000", "updated": "2016-02-01T13:43:45.000+0000" }, { "id": "375762", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FT and CR approved , Thanks!", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-02-02T20:57:29.000+0000", "updated": "2016-02-02T20:57:29.000+0000" }, { "id": "375887", "author": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "body": "Thank you guys for your work, I'm excited to try this as soon as I can :)", "updateAuthor": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "created": "2016-02-03T16:19:30.000+0000", "updated": "2016-02-03T16:19:30.000+0000" }, { "id": "388070", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed, SearchBar button title can now be customized.\r\n\r\nTested On:\r\niPhone 6S (9.3.2) Device & iPhone 6 Plus (8.3) Device\r\nMac OSX El Capitan 10.11.5 \r\nTi SDK: 5.4.0.v20160608165242\r\nAppc Studio: 4.6.0.201605201934\r\nAppc NPM: 4.2.7-2\r\nApp CLI: 5.4.0-15\r\nXcode 7.3\r\nNode v4.2.6\r\n*Closing ticket.*", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-06-10T17:45:17.000+0000", "updated": "2016-06-10T17:45:17.000+0000" }, { "id": "420362", "author": { "name": "jaraen", "key": "jaraen", "displayName": "Javier Rayon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I can't see this property working on titanium SDK 6.0.4.\r\n\r\nUsing this code\r\n\r\n```\r\nvar search = Titanium.UI.createSearchBar({\r\n\t\tbarColor: '#f0f0f0',\r\n\t\tborderColor: '#f0f0f0',\r\n\t\tcancelButtonTitle: 'Done',\r\n\t\theight: 43,\r\n\t\tleft: 20,\r\n\t\tright: 20,\r\n\t\thintText: 'Ex. \"David\", \"Hasselhoff\" or \"Michael Night\"',\r\n\t\ttop: 30,\r\n\t});\r\n}}\r\n````\r\ndoes not show any button at all. If `showCancel` property is set to true, it shows the Cancel button (no change in button label at all). Any thought?", "updateAuthor": { "name": "jaraen", "key": "jaraen", "displayName": "Javier Rayon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-24T18:46:13.000+0000", "updated": "2017-05-24T18:46:13.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }