Change HTML Elemento property inline

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

Change HTML Elemento property inline

andremrezende
Reply | Threaded
Open this post in threaded view
|

Re: Change HTML Elemento property inline

andremrezende
The solution was simply. After read the Tutorial, I found.
Just insert into element tag the attribute th:attr. In my case, I replaced it for:

<code>
th:attr="data-background-image='images/' + ${categoriesMostWanted[0].pictureName}"
</code>

and everything works.