I am attempting to manipulate a custom widget (Table) I built. I first initialize the widget in the viewer.js class and attach it to the 'sidebarBottom' pane in the viewer. Since the 'Find' widget is a titlePane and attached to the sidebar, I need a way to pass attributes in between each widget.
if I initialize the custom widget in the viewer.js class I can successfully attach it to the bottom pane, but I do not know how to pass dojo/dijit arguments to it via the Find widget. I have attempted to use dojo.byId() with no success.
If I initialize my custom widget from inside of the Find widget using the second block of code, I can successfully set() and get() attributes. However, I am unable to attach the widget to the "sidebarBottom" pane defined in the viewer.js declaration.
Table Widget Section in Viewer.js:
table: {
include: true,
id: 'table',
type: 'contentPane',
path: 'gis/dijit/Table',
placeAt: 'bottom',
options: {
map: true,
}
},
Table Widget Init in 'Find' Widget Class
var fOut = query.url + "/" + query.layerIds;
var table;
table = new Table({
include: true,
open: true,
FeatureInput: fOut,
map: this.map,
//placeAt: this.bottom,
});
alert(table.get('FeatureInput'));
alert(table.get('open'));