Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
User | Count |
---|---|
5 | |
4 | |
4 | |
2 | |
2 |
User | Count |
---|---|
8 | |
4 | |
4 | |
4 | |
3 |