You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refer to issue : Identify With Content Formatter #490
i found error in the sample given in the documentation but i don't know how to edit it in github . so i post is here.
there are few missing bracket and one typo
define([
'dojo/_base/lang',
'dijit/layout/TabContainer',
'dijit/layout/ContentPane',
'dojo/dom-construct',
], function (lang, Container, ContentPane, domConstruct) { // Container => should be TabContainer
var formatters = {
attributeList: function (identifyResults) { // this part is OK
},
tabContainer: function(identifyResults) {
var container = new TabContainer( // must end with opening curly bracket => ...({
style: 'height: 100%; width: 100%;' // or start this line with one => { style ...
}, domConstruct.create('div'));
container.addChild(new ContentPane({
title: 'my title',
content: 'You clicked a feature. The results are in the next tab'
}); // need one more closing bracket => }));
container.addChild(new ContentPane({
title: 'my title',
content: formatters.attributeList(identifyresults)
}); // need one more closing bracket => }));
return container.domNode;
}
};
.......
The text was updated successfully, but these errors were encountered:
refer to issue : Identify With Content Formatter #490
i found error in the sample given in the documentation but i don't know how to edit it in github . so i post is here.
there are few missing bracket and one typo
define([
'dojo/_base/lang',
'dijit/layout/TabContainer',
'dijit/layout/ContentPane',
'dojo/dom-construct',
], function (lang, Container, ContentPane, domConstruct) { // Container => should be TabContainer
var formatters = {
attributeList: function (identifyResults) {
// this part is OK
},
tabContainer: function(identifyResults) {
var container = new TabContainer( // must end with opening curly bracket => ...({
style: 'height: 100%; width: 100%;' // or start this line with one => { style ...
}, domConstruct.create('div'));
container.addChild(new ContentPane({
title: 'my title',
content: 'You clicked a feature. The results are in the next tab'
}); // need one more closing bracket => }));
container.addChild(new ContentPane({
title: 'my title',
content: formatters.attributeList(identifyresults)
}); // need one more closing bracket => }));
return container.domNode;
}
};
.......
The text was updated successfully, but these errors were encountered: