var link = domConstruct.create("a", {
"class": "action",
"id": "statsLink",
"innerHTML": "Attach Documents", //text that appears in the popup for the link
"href": "javascript: void(0);"
}, query(".actionList", map.infoWindow.domNode)[0]);
//when the link is clicked register a function that will run
on(link, "click", showDialog);
},
but doesn't work,
I'm using Editor Widget as in this sample (Edit rivers and waterbodies ) I'm wondering if is it possible to add the link as I want ?
thanks in advance !
Solved! Go to Solution.
Dairis,
Here is how you would do that for the edit widgets attributes inspector:
var link = domConstruct.create("a", {
"class": "atiNavButtons",
"id": "statsLink",
"innerHTML": "Attach Documents", //text that appears in the popup for the link
"href": "javascript: void(0);"
}, query(".atiButtons", map.infoWindow.domNode)[0]);
//when the link is clicked register a function that will run
on(link, "click", showDialog);
Dairis,
Here is how you would do that for the edit widgets attributes inspector:
var link = domConstruct.create("a", {
"class": "atiNavButtons",
"id": "statsLink",
"innerHTML": "Attach Documents", //text that appears in the popup for the link
"href": "javascript: void(0);"
}, query(".atiButtons", map.infoWindow.domNode)[0]);
//when the link is clicked register a function that will run
on(link, "click", showDialog);
Thank you so much !