HTML
xxxxxxxxxx
1
<table id="list_List01" class="table table-hover w-100">
2
<thead>
3
<tr>
4
<th class="th-sm">
5
</th>
6
<th class="th-sm">#
7
</th>
8
<th class="th-sm">Immatriculation
9
</th>
10
<th class="th-sm">Model
11
</th>
12
<th class="th-sm">Date début
13
</th>
14
<th class="th-sm">Date fin
15
</th>
16
<th class="th-sm">Statut
17
</th>
18
</tr>
19
</thead>
20
<tbody>
21
<tr>
22
<th scope="row">
23
<div class="action-list-item d-flex justify-content-start">
24
<div class="btn-group-list" role="group">
25
<a class="btn btn-default btn-sm" href="#" title="Afficher"><i class="far fa-eye"></i></a>
26
</div>
27
</div>
28
</th>
29
<td>1</td>
30
<td>XX-999-DR</td>
31
<td>Clio 5 2020</td>
32
<td>00/00/0000</td>
33
<td>00/00/0000</td>
34
<td>Actif</td>
35
</tr>
36
<tr>
37
<th scope="row">
38
<div class="action-list-item d-flex justify-content-start">
39
<div class="btn-group-list" role="group">
40
<a class="btn btn-default btn-sm" href="#" title="Afficher"><i class="far fa-eye"></i></a>
41
</div>
42
</div>
43
</th>
44
<td>1</td>
45
<td>XX-999-DR</td>
46
<td>Clio 5 2020</td>
47
<td>00/00/0000</td>
48
<td>00/00/0000</td>
49
<td>Actif</td>
50
</tr>
51
<tr>
52
<th scope="row">
53
<div class="action-list-item d-flex justify-content-start">
54
<div class="btn-group-list" role="group">
55
<a class="btn btn-default btn-sm" href="#" title="Afficher"><i class="far fa-eye"></i></a>
56
</div>
57
</div>
58
</th>
59
<td>1</td>
60
<td>XX-999-DR</td>
61
<td>Clio 5 2020</td>
62
<td>00/00/0000</td>
63
<td>00/00/0000</td>
64
<td>Actif</td>
65
</tr>
66
</tbody>
67
</table>
68
CSS
xxxxxxxxxx
1
JS
xxxxxxxxxx
1
iTable_List01 = $('#list_List01').DataTable({
2
"pagingType": "full_numbers",
3
"pageLength": -1,
4
"order": [[ 1, "desc" ]],
5
"aaSorting": [],
6
"columnDefs": [{
7
"width": "100px",
8
"orderable": false,
9
"targets": 0
10
},
11
{
12
"width": "50px",
13
"type": "num",
14
"targets": 1
15
}
16
],
17
"scrollX": true
18
}
19
});
20
Console errors: 0