Ashutosh Patil - Hi TeamWe are trying to overr...
Hi Team
We are trying to override the default Spotter (dog) icon in ThoughtSpot embedded UI using a custom SVG icon, but it's not taking effect despite following the official documentation.
- I created and hosted a custom SVG file on GitHub and used jsDelivr CDN to serve it.
- Here’s the hosted SVG file URL I’m using for the icon: https://cdn.jsdelivr.net/gh/Ashutosh-Thinkitian/spotter-icon/assets/image2vector.svg
- I have added this URL into the init() method of the embedded Spotter instance like this:
init({
...,
iconSpriteUrl: 'https://cdn.jsdelivr.net/gh/Ashutosh-Thinkitian/spotter-icon/assets/image2vector.svg',
});
Please check the same thread message to check the content of svg, The <symbol> has the correct id="rd-icon-spotter". I followed the doc to create a svg : https://developers.thoughtspot.com/docs/customize-icons
Despite doing all of this, the default dog icon still appears in the UI and my custom icon is not being applied. Can you please help us here?
Customize icons
Customize icons displayed on the ThoughtSpot application interface
7 Replies
Hi @Ashutosh Patil
You need to add the iconSpriteUrl inside customisations.
init({
...,
customizations:{
iconSpriteUrl: 'https://cdn.jsdelivr.net/gh/Ashutosh-Thinkitian/spotter-icon/assets/image2vector.svg',
}
});
Ref : https://developers.thoughtspot.com/docs/Interface_CustomisationsInterface#_iconspriteurl
CustomisationsInterface
Configuration to define the customization on the Embedded ThoughtSpot components. You can customize styles, text strings, and icons. For more information, see link:https://developers.thoughtspot.com/docs/custom-css[CSS customization framework].
Hi @Ruchi Anand , it is already under customizations object, I missed that in message

@Ashutosh Patil have you whitelisted this ?
check console logs if you are getting any errors
There is no error regarding CSP or CORS, Additionally, I have whitelisted it @Justin Mathew
I aksed the problem here after doing all try for 3 days, please help
are you ok with hoping on a call ?
i can dm you the invite link or we can join over discord itself
Sure, I am fine\
Please DM me