Afzal1 Posted August 26, 2022 Report Share Posted August 26, 2022 Any ideas on 'how to format' this custom link to be inline with the 'data download' link and include an icon? Please see below code I'm using for the custom link placement and the attached image, thank you: <script type="text/javascript"> document.addEventListener('DataPageReady', function (event) { var child = document.querySelector("li[id^='DataDownloadButton']"); var parent = child.parentElement; var a = document.createElement('a'); var linkText = document.createTextNode("my title text"); a.appendChild(linkText); a.title = "my title text"; a.href = "http://example.com"; parent.parentNode.appendChild(a); }); </script> Quote Link to comment Share on other sites More sharing options...
futurist Posted August 26, 2022 Report Share Posted August 26, 2022 Hi @Afzal1 this might help: Quote Link to comment Share on other sites More sharing options...
Afzal1 Posted August 31, 2022 Author Report Share Posted August 31, 2022 On 8/26/2022 at 5:13 PM, futurist said: Hi @Afzal1 this might help: Thank you, I've managed to tweak some the javascript to get this to work now... I'd already seen and used some of these suggestions hence my link to it also as acknowledgement... Just need to figure out how to include the icon in the javascript (the html / css versions place the link above the chart in the combined report and chart datapages but I need it to appear below the chart besides the 'download data' link). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.