Get started with datatables.net-editor-bs4 CDN
SEE LICENSE IN License.md licensed
Plugin: DataTables.net-editor-bs4 - Bootstrap 4 interface for DataTables editor.
Tags:- DataTables
- Editor
- Bootstrap
Stable version
Copied!
How to start using datatables.net-editor-bs4 CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with datatables.net-editor-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/editor/2.2.0/css/editor.dataTables.min.css">
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/editor/2.2.0/css/editor.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>Age</th>
<th>City</th>
<th>Actions</th>
</tr>
</thead>
</table>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.js"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.2/dist/js/bootstrap.min.js"></script>
<script src="https://cdn.datatables.net/editor/2.2.0/js/dataTables.editor.min.js"></script>
<script src="https://cdn.datatables.net/editor/2.2.0/js/editor.bootstrap4.min.js"></script>
<script>
$(document).ready(function() {
$('#example').DataTable({
language: {
url: '//cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/English.json'
},
dom: 'Bfrtip',
buttons: [
'create', 'edit', 'remove'
],
ajax: {
url: '/api/data'
},
columns: [
{ data: 'name' },
{ data: 'age' },
{ data: 'city' },
{ data: 'actions', orderable: false, searchable: false }
]
});
});
</script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!