filterable tables

This commit is contained in:
Jörg Henke
2022-07-06 17:23:10 +02:00
parent f96a82153c
commit 473e13b9d0
2 changed files with 22 additions and 2 deletions

View File

@ -39,7 +39,7 @@
</div>
<div id="div_list" class="tab-pane fade tab-pane-table">
<div class="accordion-body" style="background-color: white">
<table class="table table-striped table-condensed">
<table id="table" class="table table-striped table-condensed">
<thead>
<tr>
<th>Vorname</th>
@ -57,6 +57,16 @@
</tr>
</tbody>
</table>
<script type="text/javascript">
$(document).ready(function(){
var localeUrl = '[[@{/js/dataTables/de.json}]]';
$("#table").DataTable({
"language" : {
"url" : localeUrl
}
});
});
</script>
</div>
</div>
</div>

View File

@ -41,7 +41,7 @@
</div>
<div id="div_list" class="tab-pane fade tab-pane-table">
<div class="accordion-body" style="background-color: white">
<table class="table table-striped table-condensed">
<table id="table" class="table table-striped table-condensed">
<thead>
<tr>
<th>Titel</th>
@ -59,6 +59,16 @@
</tr>
</tbody>
</table>
<script type="text/javascript">
$(document).ready(function(){
var localeUrl = '[[@{/js/dataTables/de.json}]]';
$("#table").DataTable({
"language" : {
"url" : localeUrl
}
});
});
</script>
</div>
</div>
</div>