Problems using icons and boostrap 4 with th:text

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems using icons and boostrap 4 with th:text

David
Hi.

I'm trying to make a simple nav with a couple of links and icons, but if I add thymeleaf th:text the icons are not showed.

I add a file, because the code is not properly showed.

thymeleaf.txt

Am I doing something wrong??
Thanks
Reply | Threaded
Open this post in threaded view
|

Re: Problems using icons and boostrap 4 with th:text

Metroids
Structure it like this instead:

<a href="#"><span th:text="#{save}" /> <i class="icon-eye"></i>Eye</a>

th:text overwrites everything in tags beneath it, so you need an additional tag.
Reply | Threaded
Open this post in threaded view
|

Re: Problems using icons and boostrap 4 with th:text

David
Great!!.

Work like a charm

Thanks