How to Place a Field Next to the Zoom To in Popup Window

1515
1
Jump to solution
01-06-2017 02:34 PM
SarojThapa1
Occasional Contributor III

I have created an InfoTemplate Pop up Window.  The popup has a tab container that contains 3 tabs. I want to place a Field Name just next to the Zoom To link in popup info template at the bottom of the popup window.. Could someone please suggest me how to do that? My code snippets:

var template = new InfoTemplate();
template.setTitle("<b>${Name}</b>");
template.setContent(getWindowContent);
var cp3 = new ContentPane({
    title: "Site Info",
    content: "<b>Name:</b>" + graphic.attributes.Name
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Saroj,

   Just like this sample does you just add the dom element (your label) using the same method:

Geoprocessing tool link in popup | ArcGIS API for JavaScript 3.19 

              var link = domConstruct.create("a",{
                "class": "action", 
                "id": "statsLink",
                "innerHTML": "Population", //text that appears in the popup for the link 
                "href": "javascript: void(0);"
              }, query(".actionList", window.map.infoWindow.domNode)[0]);

View solution in original post

1 Reply
RobertScheitlin__GISP
MVP Emeritus

Saroj,

   Just like this sample does you just add the dom element (your label) using the same method:

Geoprocessing tool link in popup | ArcGIS API for JavaScript 3.19 

              var link = domConstruct.create("a",{
                "class": "action", 
                "id": "statsLink",
                "innerHTML": "Population", //text that appears in the popup for the link 
                "href": "javascript: void(0);"
              }, query(".actionList", window.map.infoWindow.domNode)[0]);