I would like to add data from my controller to present a progressbar in thymeleaf. I tried different approaches but none work.
<div class="progress progress-striped">
<div class="progress-bar progress-bar-warning" role="progressbar" **th:aria-valuenow="${model}"** aria-valuemin="0" aria-valuemax="100" **th:style="@{'width:'+ ${percent} +';'}"**>
<span class="sr-only">30% Complete (warning)</span>
</div>
2
Answers
Found it :
I tried using your answer and it didn’t worked for me, but it helped to find an answer for me:
p.value and p.percent are model attributes that I send from my controller. Both have numeric values.