Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

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 ...
  • v-viig's avatar
    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

    [email protected]