Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
how to import html-content.html into my code?
in my constructor I write
$.get('/src/html-content.html', function(data) {
console.log(data);
});
which results into an xhr to https://app.powerbi.com/src/html-content.html
thanks
You may wrap it up in a JavaScript file.
thanks,
I thought of this. This helps in dividing the code, but if html is wrapped in javascript, webstorm considers it as a string, even when in back-ticks (` `).
As an alternative, you might try to use webpack or gulp to preprocess the code but this is out of scope of PBIVIZ tools.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
6 | |
6 | |
2 | |
2 |
User | Count |
---|---|
4 | |
4 | |
3 | |
3 | |
2 |