Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Identify With Content Formatter - mistake in documentation #716

Open
bapak71 opened this issue Apr 17, 2017 · 0 comments
Open

Identify With Content Formatter - mistake in documentation #716

bapak71 opened this issue Apr 17, 2017 · 0 comments

Comments

@bapak71
Copy link

bapak71 commented Apr 17, 2017

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;
}
};
.......


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants