I have a popuptemplate that displays a chart attachment for a feature. Is there a way to remove the text "Attachments:" from the popup and just show the attachment?
Solved! Go to Solution.
With the popup attachments it is slightly different try this css.
.attachmentsSection div:first-child{
display:none;
}
Lloyd,
You will have to do this through direct DOM manipulation:
map.infoWindow.on("selection-change", function(){
setTimeout(function(){
var node = query(".attachmentsSection")[0];
domStyle.set(node.children[0], "display", "none");
}, 100);
});
You could also try using the following css to hide the 'Attachment's text.
.attachmentEditor > div > b {
display: none;
}
This didn't work. I'm not using an info template, just the popup template.
var popupTemplate = new PopupTemplate({
showAttachments: true
});
With the popup attachments it is slightly different try this css.
.attachmentsSection div:first-child{
display:none;
}
Thanks!