This repository was archived by the owner on Feb 2, 2025. It is now read-only.
File tree 3 files changed +9
-2
lines changed
3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 34
34
"scripts" : [
35
35
" node_modules/jquery/dist/jquery.js" ,
36
36
" node_modules/tether/dist/js/tether.js" ,
37
+ " node_modules/jszip/dist/jszip.js" ,
37
38
" node_modules/datatables.net/js/jquery.dataTables.js" ,
38
39
" node_modules/datatables.net-buttons/js/dataTables.buttons.js" ,
39
40
" node_modules/datatables.net-buttons/js/buttons.colVis.js" ,
93
94
" node_modules/jquery/dist/jquery.js" ,
94
95
" node_modules/tether/dist/js/tether.js" ,
95
96
" node_modules/datatables.net/js/jquery.dataTables.js" ,
97
+ " node_modules/jszip/dist/jszip.js" ,
96
98
" node_modules/datatables.net-buttons/js/dataTables.buttons.js" ,
97
99
" node_modules/datatables.net-buttons/js/buttons.colVis.js" ,
98
100
" node_modules/datatables.net-buttons/js/buttons.flash.js" ,
169
171
"prefix" : " app"
170
172
}
171
173
}
172
- }
174
+ }
Original file line number Diff line number Diff line change 37
37
"datatables.net-select-dt" : " ^1.2.3" ,
38
38
"highlight.js" : " ^9.12.0" ,
39
39
"jquery" : " ^3.2.1" ,
40
+ "jszip" : " ^3.1.5" ,
40
41
"materialize-css" : " 0.100.2" ,
41
42
"rxjs" : " ^6.1.0" ,
42
43
"rxjs-compat" : " ^6.1.0" ,
Original file line number Diff line number Diff line change @@ -15,13 +15,16 @@ import { Component } from '@angular/core';
15
15
<h4 id="angular-cli">.angular-cli.json</h4>
16
16
<p>Add the dependencies in the scripts and styles attributes:</p>
17
17
<section [innerHTML]="angularCliJsonSnippet" highlight-js-content=".json"></section>
18
+ <blockquote>If you want to have the excel export functionnality, then you must import the <code>jszip.js</code> before the <code>buttons.html5.js</code> file.</blockquote>
18
19
</div>
19
20
`
20
21
} )
21
22
export class ButtonsExtensionConfigurationComponent {
22
23
npmInstallSnippet = `
23
24
<pre>
24
- <code class="bash highlight"># JS file
25
+ <code class="bash highlight"># If you want to export excel files
26
+ npm install jszip --save
27
+ # JS file
25
28
npm install datatables.net-buttons --save
26
29
# CSS file
27
30
npm install datatables.net-buttons-dt --save
@@ -41,6 +44,7 @@ npm install @types/datatables.net-buttons --save-dev
41
44
],
42
45
"scripts": [
43
46
...
47
+ "../node_modules/jszip/dist/jszip.js",
44
48
"../node_modules/datatables.net-buttons/js/dataTables.buttons.js",
45
49
"../node_modules/datatables.net-buttons/js/buttons.colVis.js",
46
50
"../node_modules/datatables.net-buttons/js/buttons.flash.js",
You can’t perform that action at this time.
0 commit comments