Adding columns dynamically

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

Adding columns dynamically

niks27
How to add the columns dynamically using themeleaf
Reply | Threaded
Open this post in threaded view
|

Re: Adding columns dynamically

eiryu
below or javascript.


<table>
  <thead>
    <td>A</td>
    <td th:if="${someCondition}">B</td>
  </thead>
  <tbody>
    <td>hoge</td>
    <td th:if="${someCondition}">fuga</td>
  </tbody>
</table>