yuuvis® Q&A

0 votes
in yuuvis Momentum by (2.4k points)

Hi Yuuvis Team

We would like to use custom icons in our custom client and are wondering how to do this. Are the <yuv-icon ...> tags only for Framework icons, or can we extend these somehow with our own custom icons?

The documentation at https://yuuvis-cc.yuuvis.org/ for the IconComponent (sadly I can't link it directly) says the preferred way would be via IconRegistryService, but I can't find any documentation on this.

Thanks for your support
Nicole

1 Answer

0 votes
by (3.7k points)
selected by
 
Best answer

Hi Nicole,

you do not have to register your own icons. If you user the input iconSrc as shown in the given example

<yuv-icon iconSrc="assets/svg/clear.svg"></yuv-icon>

the icon that is stored at this specified place is used.

BR Martin

by (2.4k points)
Hi Martin

The provided snipped works for us. Just out of curiosity: so the preferred way is not via the Icon Registry as mentioned in the documentation?

Kind regards
Nicole
by (3.7k points)
Hi Nicole,

nice to hear that everything works for you now.

And you are right with the hint about the recommendation, so we will remove that recommendation in the near future.

BR Martin
...