Get started with datatables.net-colreorder-bs4 CDN
MIT licensed
Datatables.net-colreorder-BS4: Plugin for Bootstrap 4 column reordering in Datatables.net.
Tags:- reorder
- DataTables
- jQuery
- table
- Bootstrap 4
Stable version
Copied!
How to start using datatables.net-colreorder-bs4 CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with datatables.net-colreorder-bs4 CDN - cdnhub.io</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.2/dist/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/colreorder/2.0.0/css/colReorder.bootstrap4.min.css">
</head>
<body>
<div class="container mt-5">
<table id="example" class="table table-bordered table-striped">
<thead>
<tr>
<th>Name</th>
<th>Position</th>
<th>Office</th>
<th>Age</th>
<th>Start date</th>
<th>Salary</th>
</tr>
</thead>
</table>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.js"></script>
<script src="https://cdn.datatables.net/1.11.5/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/colreorder/2.0.0/js/dataTables.colReorder.min.js"></script>
<script src="https://cdn.datatables.net/colreorder/2.0.0/js/colReorder.bootstrap4.min.js" defer></script>
<script>
$(document).ready(function() {
$('#example').DataTable({
responsive: true,
colReorder: {
select: true
}
});
});
</script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!