{
"id": "118502",
"key": "ALOY-785",
"fields": {
"issuetype": {
"id": "2",
"description": "A new feature of the product, which has yet to be developed.",
"name": "New Feature",
"subtask": false
},
"project": {
"id": "11113",
"key": "ALOY",
"name": "Alloy",
"projectCategory": {
"id": "10400",
"description": "Tools for developing applications",
"name": "Tooling"
}
},
"fixVersions": [],
"resolution": null,
"resolutiondate": null,
"created": "2013-08-14T15:05:56.000+0000",
"priority": {
"name": "Low",
"id": "4"
},
"labels": [
"alloy",
"parent",
"tabgroup"
],
"versions": [
{
"id": "15402",
"description": "Alloy 1.2.0, concurrent with SDK 3.1.0",
"name": "Alloy 1.2.0",
"archived": false,
"released": true,
"releaseDate": "2013-08-15"
}
],
"issuelinks": [],
"assignee": null,
"updated": "2018-03-07T22:26:03.000+0000",
"status": {
"description": "The issue is open and ready for the assignee to start work on it.",
"name": "Open",
"id": "1",
"statusCategory": {
"id": 2,
"key": "new",
"colorName": "blue-gray",
"name": "To Do"
}
},
"components": [],
"description": "In the following code the widget providing the tab gets no reference to the TabGroup. Because of this, it cannot change the TabGroup's activeTab, ActionBar or perform other context-aware actions.\r\n\r\n*views/index.xml*\r\n{code:xml}\r\n\r\n \r\n \r\n \r\n\r\n{code}\r\n\r\n*widgets/myTab/views/widget.xml*\r\n{code:xml}\r\n\r\n \r\n \r\n \r\n\r\n{code}\r\n\r\nh1. Solution\r\nThis could easily be solved by having Alloy pass the TabGroup via the {{__parentSymbol}} property also found in other places where a widget is used. IMHO this property should/could *always* be passed to widgets/required controllers.\r\n\r\nh1. Notes\r\n* Any workaround requiring code in the index-controller is not honoring the fact that widgets should be self-sustained.\r\n* Having said the above, even assign the TabGroup to {{Alloy.Globals.}} won't work since the tabs will be created before the controller code is executed.",
"attachment": [],
"flagged": false,
"summary": "Pass TabGroup as __parentSymbol to widgets providing a tab",
"creator": {
"name": "fokkezb",
"key": "fokke",
"displayName": "Fokke Zandbergen",
"active": true,
"timeZone": "Europe/Amsterdam"
},
"subtasks": [],
"reporter": {
"name": "dsefton",
"key": "dsefton",
"displayName": "Daniel Sefton",
"active": true,
"timeZone": "America/Los_Angeles"
},
"environment": "Alloy 1.2.0-alpha6",
"comment": {
"comments": [],
"maxResults": 1,
"total": 1,
"startAt": 0
}
}
}