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.
Hi,
I have the follwoing problem: I am getting a color from my options using a colorpicker in my custom visual. Now I want to pass this colorvalue from my visual.ts file to my visual.less file so I can use it in this file. How do I achieve this?
Thanks in advance!
Solved! Go to Solution.
There's no way to pass value from TypeScript code to LESS.
As alternative you should generate an inline CSS style or apply your color to all of elements inline using JS (d3, jQuery).
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
There's no way to pass value from TypeScript code to LESS.
As alternative you should generate an inline CSS style or apply your color to all of elements inline using JS (d3, jQuery).
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
User | Count |
---|---|
5 | |
4 | |
3 | |
2 | |
2 |
User | Count |
---|---|
8 | |
6 | |
4 | |
4 | |
4 |