Forum Discussion
Anonymous
8 years agoNot applicable
Pass Data from visual.ts to visual.less
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 ...
- 8 years ago
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
v-viig
8 years agoCommunity Champion
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