-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathexample02.html
More file actions
87 lines (85 loc) · 2.48 KB
/
Copy pathexample02.html
File metadata and controls
87 lines (85 loc) · 2.48 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
87
<div class="example02">
<div class="row">
<div class="col-md-12 title-desc">
<h2 class="bd-title">
Example 02: Sizing/Collapsing Columns
<span class="float-end links">
Code <span class="fa fa-link"></span>
<span class="small">
<a
target="_blank"
href="https://github.com/ghiscoding/excel-builder-vanilla/blob/main/packages/demo/src/examples/example02.html"
>html</a
>
|
<a target="_blank" href="https://github.com/ghiscoding/excel-builder-vanilla/blob/main/packages/demo/src/examples/example02.ts"
>ts</a
>
</span>
</span>
</h2>
<div class="demo-subtitle">
The column <code>width</code>
attribute will set a width. The <code>hidden</code>
attribute will hide the column in Excel. The example below has the "Artist" column wider and the next column "Album" to be hidden in
the exported Excel file.
</div>
</div>
</div>
<div>
<div class="mb-2">
<button id="export" class="btn btn-success btn-sm">
<i class="fa fa-download"></i>
Excel Export
</button>
</div>
<div class="row">
<div class="table-container col-sm-8">
<table class="table">
<thead>
<tr>
<th colspan="3" class="text-center">Merged Header</th>
</tr>
<tr>
<th scope="col">Artist</th>
<th scope="col">Album (hidden column)</th>
<th scope="col">Price</th>
</tr>
</thead>
<tbody>
<tr>
<td>Buckethead</td>
<td>Albino Slug</td>
<td>8.99</td>
</tr>
<tr>
<td>Buckethead</td>
<td>Electric Tears</td>
<td>13.99</td>
</tr>
<tr>
<td>Buckethead</td>
<td>Colma</td>
<td>11.34</td>
</tr>
<tr>
<td>Crystal Method</td>
<td>Vegas</td>
<td>10.54</td>
</tr>
<tr>
<td>Crystal Method</td>
<td>Tweekend</td>
<td>10.64</td>
</tr>
<tr>
<td>Crystal Method</td>
<td>Divided By Night</td>
<td>8.99</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>