-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
86 lines (81 loc) · 3.34 KB
/
Copy pathindex.html
File metadata and controls
86 lines (81 loc) · 3.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<!-- Write By @oranginisiald2nd -->
<!-- Support By Team FCT34 -->
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- DataTable CSS -->
<link rel="stylesheet"href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.0-alpha3/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/1.13.4/css/dataTables.bootstrap5.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/responsive/2.4.1/css/responsive.bootstrap5.min.css">
<title>DataTable with Action Buttons | devRasen</title>
</head>
<body>
<!-- Main Content -->
<div class="container p-3 my-5 bg-light border border-primary">
<!-- DataTable Code starts -->
<table id="example" class="table table-striped nowrap" style="width:100%">
<thead>
<tr>
<th>nama</th>
<th>alamat</th>
<th>Posisi</th>
<th>umur</th>
<th>Pendapatan</th>
<th>E-mail</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<tr>
<td>Jamal</td>
<td>Jl oyy</td>
<td>Javascript Developer</td>
<td>39</td>
<td>Rp 1.000.000</td>
<td>c.hurst@datatables.net</td>
<td>
<button class="btn btn-primary btn-sm me-1">
<i class="bi bi-pencil-fill"></i> Edit
</button>
<button class="btn btn-danger btn-sm">
<i class="bi bi-trash-fill"></i> Delete
</button>
</td>
</tr>
<tr>
<td>Asep</td>
<td>Jl Ah cape ah</td>
<td>Software Engineer</td>
<td>23</td>
<td>Rp 1.500.000</td>
<td>s.frost@datatables.net</td>
<td>
<button class="btn btn-primary btn-sm me-1">
<i class="bi bi-pencil-fill"></i> Edit
</button>
<button class="btn btn-danger btn-sm">
<i class="bi bi-trash-fill"></i> Delete
</button>
</td>
</tr>
</tbody>
</table>
</div>
<!-- DataTable JS -->
<script src="https://code.jquery.com/jquery-3.5.1.js"></script>
<script src="https://cdn.datatables.net/1.13.4/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.13.4/js/dataTables.bootstrap5.min.js"></script>
<script src="https://cdn.datatables.net/responsive/2.4.1/js/dataTables.responsive.min.js"></script>
<script src="https://cdn.datatables.net/responsive/2.4.1/js/responsive.bootstrap5.min.js"></script>
<!-- Bootstrap Icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.10.5/font/bootstrap-icons.min.css">
<!-- Custom JS -->
<script>
$("#example").DataTable({
responsive: true,
});
</script>
</body>
</html>