This repository was archived by the owner on May 21, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
58 lines (51 loc) · 1.85 KB
/
index.html
File metadata and controls
58 lines (51 loc) · 1.85 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
<!doctype html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Como exportar html a excel</title>
<!-- links para exportar a excel -->
<script src="https://unpkg.com/xlsx@0.16.9/dist/xlsx.full.min.js"></script>
<script src="https://unpkg.com/file-saverjs@latest/FileSaver.min.js"></script>
<script src="https://unpkg.com/tableexport@latest/dist/js/tableexport.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
</head>
<body>
<br><br>
<div class="container">
<div class="card">
<div class="card-header">
Como exportar datos de html a excel
</div>
<div class="card-body">
<button id="btnExportar" class="btn btn-success">
<i class="fas fa-file-excel"></i> Exportar datos a Excel
</button>
<table id="tabla" class="table table-border table-hover">
<thead>
<tr>
<th>Nro</th>
<th>Nombre</th>
<th>Apellido</th>
<th>Celular</th>
<th>Año</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Freddy</td>
<td>Hilari</td>
<td>75657007</td>
<td>25</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<script src="main.js"></script>
</body>
</html>