Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Muesli
Advocate I
Advocate I

How to compile custom icons into my visual

Hello!

I am building a visual with an "fancytree" treeview and this view needs a .gif file inside the .css file, can i compile my .gif so it stays with inside my visual (and not on an 3rd party webserver) and if yes how can i reach/get it? 

 

i tried adding it into the tsconfig.json but i am getting a extension error : 

TYPESCRIPT   File 'C:/Work/PowerBI/jqueryTest/.tmp/precompile/style/icons.gif' has unsupported extension. The only supported extensions are '.ts', '.tsx', '.d.ts', '.js', '.jsx'.

 

Greetings.

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@Muesli,

 

Check this link.

https://github.com/Microsoft/PowerBI-visuals/issues/104

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@Muesli,

 

Check this link.

https://github.com/Microsoft/PowerBI-visuals/issues/104

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello @Muesli

 

Images might be embedded into CSS by using data-uri function of LESS CSS.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.