AnsweredAssumed Answered

How I can Add a link in Attribute Inspector Editor for the Editor Widget?

Question asked by dairist on Apr 21, 2017
Latest reply on Apr 30, 2017 by dairist
  1. I'm using Editor Widget with Template Picker. I need to add a link to open a dialog box to do more action in the attribute editor. Please see the attach image.I have tried 

    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 !

Attachments

Outcomes