Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hello,
Can we add external javascript file to custom visual?
If yes can anyone point me at some code or link.
I have tried few things like $.getScript(), reference path but no luck.
Thanks.
Solved! Go to Solution.
Take a look at the QuillWrapper in the textbox visual, it loads javascript dynamically.
You can refer to a CDN or self hosted (needs to be https)
Take a look at the QuillWrapper in the textbox visual, it loads javascript dynamically.
You can refer to a CDN or self hosted (needs to be https)
@vincent_1234 hello, sorry for jumping on someone elses thread. When you say "textbox visual", do you mean the basic textbox which is available in the ribbon bar. Or are you referring to a Custom Visual? Im trying to embed a short java script to recall a map from an external https website.
Thanks!
I was able to use getScript to grab the leaflet library for a mapping visual
$.getScript("https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.js", function (data, textStatus, jqxhr) {
//do stuff
}Alex
Thanks @Anonymous
sorry for the question, but Im completely new to this side of Power BI. How do I add this into a power BI report?
You are going to want to leverage it in your custom visual code. Documentation on how to get started can be found here: https://github.com/Microsoft/PowerBI-visuals
Alex
I won't say no but I would be fairly surprised if this was allowed for security concerns alone.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.