<table class="table table-hover table-bordered" id="tabelstokis">
<thead>
<tr>
    <th scope="col">Kode Barang</th>
    <th scope="col">Barcode</th>
    <th scope="col">Nama Barang</th>
    <th scope="col" width="2%"></th>
</tr>
</thead>
<tbody>
<?php
$no=1;
foreach ($databarang as $hasil) {
    ?>
    <tr>
        <td><?php echo $hasil->kode_barang ?></td>
        <td><?php echo $hasil->barcode ?></td>
        <td><?php echo $hasil->barang ?></td>
        <td>
            <button type="button" title="Hapus" onclick="konfirhapus(this.value)" class="btn btn-danger btn-xs" value="<?php echo $hasil->id_supliermeta ?>"><i class="fa fa-trash"></i></button>
        </td>
    </tr>
    <?php
    $no++;
}
?>
</tbody>
</table>
<script type="text/javascript">
$(document).ready(function() {
    $("#tabelstokis").DataTable({
        "processing":true,
        "responsive":true,
        "paging": false
    });
});
</script>