Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
13 | |
2 | |
2 | |
1 | |
1 |
User | Count |
---|---|
20 | |
3 | |
2 | |
2 | |
2 |