After load of tabs in DV
Posted: 2018-08-07 12:29
Hi there,
I'd like to put (Bootstrap-) badges inside the tab-captions of the details-tabs indicating the number of records:
The Bootstrap-code is quite simple:
There are two problems:
Thanks in advance,
Kind Regards,
Jan
I'd like to put (Bootstrap-) badges inside the tab-captions of the details-tabs indicating the number of records:
The Bootstrap-code is quite simple:
Code: Select all
<ul class="nav nav-tabs">
<!-- ... -->
<li class="">
<a href="#...-..." id="...-..." data-toggle="tab" aria-expanded="false" style="display: none;">
Hinweise <span class="badge">3</span>
</a>
</li>
</ul>
There are two problems:
- The javascript function has to be called after the tab has been loaded completely
Unfortunately $j(function(){...}); will be executed before the tabs have been loaded completely
- I have to find out the number of records per details-tab
If there are more than 10 records counting then number or <tr> will not give the total number of records because of pagination
Thanks in advance,
Kind Regards,
Jan