{"action":"opened","issue":{"url":"https://api.github.com/repos/cmv/cmv-app/issues/502","labels_url":"https://api.github.com/repos/cmv/cmv-app/issues/502/labels{/name}","comments_url":"https://api.github.com/repos/cmv/cmv-app/issues/502/comments","events_url":"https://api.github.com/repos/cmv/cmv-app/issues/502/events","html_url":"https://github.com/cmv/cmv-app/issues/502","id":127997458,"number":502,"title":"Help with custom widget","user":{"login":"carrbrpoa","id":10212618,"avatar_url":"https://avatars.githubusercontent.com/u/10212618?v=3","gravatar_id":"","url":"https://api.github.com/users/carrbrpoa","html_url":"https://github.com/carrbrpoa","followers_url":"https://api.github.com/users/carrbrpoa/followers","following_url":"https://api.github.com/users/carrbrpoa/following{/other_user}","gists_url":"https://api.github.com/users/carrbrpoa/gists{/gist_id}","starred_url":"https://api.github.com/users/carrbrpoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carrbrpoa/subscriptions","organizations_url":"https://api.github.com/users/carrbrpoa/orgs","repos_url":"https://api.github.com/users/carrbrpoa/repos","events_url":"https://api.github.com/users/carrbrpoa/events{/privacy}","received_events_url":"https://api.github.com/users/carrbrpoa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-21T19:09:35Z","updated_at":"2016-01-21T19:09:35Z","closed_at":null,"body":"Hello,\r\n\r\nLet's say I implemented a custom widget called MyCustom that looks like this:\r\n\r\n```javascript\r\ndefine([\r\n\t\t// basics\r\n\t\t'dojo/_base/declare',\r\n\t\t// mixins & base classes\r\n\t\t'dijit/_WidgetBase',\r\n\t\t'dijit/_TemplatedMixin',\r\n\t\t'dijit/_WidgetsInTemplateMixin',\r\n\t\t// templates & widget css\r\n\t\t'dojo/text!./CDL/templates/CDL.html',\r\n\t\t'xstyle/css!./CDL/css/CDL.css',\r\n\t\t'dojo/i18n!./CDL/nls/resource'\r\n\t], function (declare, _WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin,\r\n\t\ttemplate, css, i18n) {\r\n\r\n\treturn declare([_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin], {\r\n\t\twidgetsInTemplate : true,\r\n\t\ttemplateString : template,\r\n\t\tbaseClass : 'gis_CDLDijit',\r\n\t\ti18n : i18n,\r\n\t\tmap : null,\r\n\r\n\t\tpostCreate : function () {\r\n\t\t\tthis.inherited(arguments);\r\n\t\t\tthis.setupConnections();\r\n\r\n\t\t\t(...)\r\n\r\n\t\t\tvar someProp = this.someProp;\r\n\t\t\t\r\n\t\t\t// Some processing over someProp...\r\n\t\t},\r\n\r\n\t\t(...)\r\n\t});\r\n});\r\n```\r\n\r\nThis widget is declared in `viewer.js` like this:\r\n\r\n```javascript\r\nmyCustom : {\r\n\tinclude : true,\r\n\tid : 'myCustom',\r\n\ttype : 'titlePane',\r\n\tcanFloat : true,\r\n\tposition : 1,\r\n\tpath : 'gis/dijit/MyCustom',\r\n\ttitle : 'My Custom',\r\n\topen : false,\r\n\tcssClass : 'search',\r\n\toptions : {\r\n\t\tmap : true,\r\n\t\tsomeProp : 'abc'\r\n\t}\r\n},\r\n```\r\n\r\nThe question is: what do I need to do to embed this widget in another one (`Search`, as sample) and pass the `someProp` to it?\r\n\r\nI tried the following in the beginning of `config/searchWidget.js`, which resulted in undefined `someProp` inside `MyCustom.js`:\r\n\r\n```javascript\r\n(...)\r\n\r\nreturn {\r\n\tmap : true,\r\n\tmapClickMode : true,\r\n\tsomeProp : 'abc',\r\n\r\n\t(...)\r\n```"}}