61 lines
2.0 KiB
Plaintext
61 lines
2.0 KiB
Plaintext
<!-- TABLE -->
|
|
<div class="overflow-x-auto">
|
|
<table class="table-zebra table w-full text-sm" id="tableRw">
|
|
<thead>
|
|
<tr>
|
|
<th class="w-[5%]">No</th>
|
|
<th class="w-[10%]">RW</th>
|
|
<th class="w-[15%]">Kelurahan</th>
|
|
<th class="w-[20%]">Kota</th>
|
|
<th class="w-[12%]">Mudah Terurai</th>
|
|
<th class="w-[12%]">Daur Ulang</th>
|
|
<th class="w-[12%]">B3</th>
|
|
<th class="w-[14%]">Residu</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody></tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<script src="/lib/jquery/jquery-3.7.1.js"></script>
|
|
<script src="/lib/datatables/dataTables.js"></script>
|
|
<script src="/plugins/datatables/dataTables.tailwindcss.js"></script>
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function () {
|
|
new DataTable('#tableRw', {
|
|
ajax: '@Url.Action("TableRw", "VolumeTimbulanSampah")',
|
|
autoWidth: false,
|
|
initComplete: function () {
|
|
$('div.dt-scroll-body thead').css('visibility', 'collapse');
|
|
},
|
|
columns: [
|
|
{
|
|
data: null,
|
|
render: (d, t, r, m) => m.row + 1,
|
|
orderable: false,
|
|
searchable: false
|
|
},
|
|
{ data: 'rw' },
|
|
{ data: 'kelurahan' },
|
|
{ data: 'kota' },
|
|
{
|
|
data: 'mudahTerurai',
|
|
render: data => data.toLocaleString("id-ID"),
|
|
},
|
|
{
|
|
data: 'daurUlang',
|
|
render: data => data.toLocaleString("id-ID"),
|
|
},
|
|
{
|
|
data: 'b3',
|
|
render: data => data.toLocaleString("id-ID"),
|
|
},
|
|
{
|
|
data: 'residu',
|
|
render: data => data.toLocaleString("id-ID"),
|
|
}
|
|
]
|
|
});
|
|
});
|
|
</script> |