In module.ts
, I can add radio buttons this way, and add image urls to show a little icon instead of having it show only text. This works great with absolute urls but I created my own icons to display instead. I want to use a relative url instead using my custom icons.
.addRadio({
...
settings: {
options: [
{
value: 'v',
imgUrl: 'https://link-to-image.svg', // << change to './img/custom.svg'
},
...
],
},
I have placed them in an ./img
folder which contains the panel logo, but when I build the plugin and open Grafana, I don’t see my images in the resources tab in the inspector (and I don’t see the icons in the radio buttons.) I am assuming the images are not packaged when I build the plugin. How do I fix this? Thanks!