{ "id": "168302", "key": "TIMOB-24795", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-06-09T21:57:56.000+0000", "created": "2017-06-08T15:17:17.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "19572", "description": "Important fixes for 6.1.0", "name": "Release 6.1.1", "archived": false, "released": true, "releaseDate": "2017-06-16" } ], "issuelinks": [ { "id": "55435", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "168985", "key": "TIMOB-24968", "fields": { "summary": "Windows: Ti.UI.SearchBar's hintText property not working", "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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2017-07-18T09:02: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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "h5.Description\r\n\r\nImplement the hintText property for SearchBar. Demo code below\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nvar searchWithHintText = Ti.UI.createSearchBar({\r\n hintText: 'Search...',\r\n color: \"#333\",\r\n top: 250,\r\n width: 300,\r\n backgroundColor: \"#fff\"\r\n});\r\nvar searchWithoutHintText = Ti.UI.createSearchBar({\r\n color: \"#333\",\r\n top: 300,\r\n width: 300,\r\n backgroundColor: \"#fff\"\r\n});\r\nvar setMethBtn = Ti.UI.createButton({\r\n title: 'Set the hintText via method',\r\n top: '15'\r\n});\r\nvar setPropBtn = Ti.UI.createButton({\r\n title: 'Set the hintText via prop',\r\n top: 50\r\n});\r\nsetMethBtn.addEventListener('click', function () {\r\n searchWithHintText.setHintText('Changed search text via method');\r\n});\r\nsetPropBtn.addEventListener('click', function () {\r\n searchWithHintText.hintText = 'Changed search text via prop';\r\n});\r\nvar getBtn = Ti.UI.createButton({\r\n title: 'Get the hintText',\r\n top: 150\r\n\r\n});\r\ngetBtn.addEventListener('click', function () {\r\n console.log(searchWithHintText.hintText);\r\n console.log(searchWithHintText.getHintText());\r\n});\r\nwin.add(setMethBtn);\r\nwin.add(setPropBtn);\r\nwin.add(getBtn);\r\nwin.add(searchWithHintText);\r\nwin.add(searchWithoutHintText);\r\nwin.open();\r\n{code}\r\n\r\nh5.Expected\r\n\r\n# Two searchBars one without hintText one with\r\n# Clicking 'Set the hintText via method ' should update the hintText\r\n# Clicking 'Set the hintText via prop ' should update the hintText\r\n# Clicking 'Get the hintText' should print the hintText twice (access property and getHintText)\r\n", "attachment": [], "flagged": false, "summary": "Windows: Implement hintText for searchbar", "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": 903, "state": "closed", "name": "2017 Sprint 12 SDK", "startDate": "2017-06-05T00:15:46.290Z", "endDate": "2017-06-19T00:15:00.000Z", "completeDate": "2017-06-19T16:09:22.870Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "421524", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Master PR: https://github.com/appcelerator/titanium_mobile_windows/pull/1010", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-06-08T16:28:22.000+0000", "updated": "2017-06-08T16:28:22.000+0000" }, { "id": "422743", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified improvement in SDK Version: 6.2.0.v20170626084207. Test and other information can be found at:\r\nhttps://github.com/appcelerator/titanium_mobile_windows/pull/1010", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-06-26T17:38:14.000+0000", "updated": "2017-06-26T17:38:14.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }