forked from Epotignano/angular-export-table
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.html
More file actions
71 lines (63 loc) · 2.11 KB
/
Copy pathdemo.html
File metadata and controls
71 lines (63 loc) · 2.11 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
<!-- Export options -->
<div class="row pull-right">
<div class="dropdown">
<button class="btn btn-lg btn-export dropdown-toggle" margin-right=46px type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
Export <span class="caret"></span>
</button>
<ul class="table-export dropdown-menu"
table-selector="'auxTable'"
export-options="{type: 'pdf', escape: true, ignoreColumn : '[4]', tableName: 'Aanhefs' }"
aria-labelledby="dropdownMenu1">
<li te-option te-value="'pdf'" te-param="'type'">
<a href="">PDF</a>
</li>
<li te-option te-value="'excel'" te-param="'type'">
<a href="">Excel</a>
</li>
<li te-option te-value="'csv'" te-param="'type'">
<a href="">CSV</a>
</li>
</ul>
</div>
</div>
<!-- Export shown table -->
<table st-table="LIST_ELEMENTS" st-filtered-collection="filteredCollection" class="table table-striped">
<thead>
<tr>
<th>ATRIB_NAME_1</th>
<th>ATRIB_NAME_2</th>
<th>ATRIB_NAME_3</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="item in LIST_ELEMENTS">
<td>{{item.ATRIB_NAME_1}}</td>
<td>{{item.ATRIB_NAME_2}}</td>
<td>{{item.ATRIB_NAME_3}}</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="5" class="text-center">
<div st-pagination="" st-items-by-page="itemsByPage" st-displayed-pages="10"></div>
</td>
</tr>
</tfoot>
</table>
<!-- Auxiliar Table with All the content to export -->
<table id="auxTable" style="opacity: 0; position: absolute;">
<thead>
<tr>
<th>ATRIB_NAME_1</th>
<th>ATRIB_NAME_2</th>
<th>ATRIB_NAME_3</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="x in filteredCollection">
<td>{{item.ATRIB_NAME_1}}</td>
<td>{{item.ATRIB_NAME_2}}</td>
<td>{{item.ATRIB_NAME_3}}</td>
</tr>
</tbody>
</table>