Skip to content

Commit 952eb78

Browse files
author
hhurz
committed
Code optimization and refactoring
1 parent fe054e0 commit 952eb78

File tree

5 files changed

+687
-694
lines changed

5 files changed

+687
-694
lines changed

README.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -90,27 +90,27 @@ Library | Version
9090
Examples
9191
========
9292

93-
```
93+
```javascript
9494
// CSV format
9595

9696
$('#tableID').tableExport({type:'csv'});
9797
```
9898

99-
```
99+
```javascript
100100
// Excel 2000 html format
101101

102102
$('#tableID').tableExport({type:'excel'});
103103
```
104104

105-
```
105+
```javascript
106106
// XML Spreadsheet 2003 file format with multiple worksheet support
107107

108108
$('table').tableExport({type:'excel',
109109
mso: {fileFormat:'xmlss',
110110
worksheetName: ['Table 1','Table 2', 'Table 3']}});
111111
```
112112

113-
```
113+
```javascript
114114
// PDF export using jsPDF only
115115

116116
$('#tableID').tableExport({type:'pdf',
@@ -120,7 +120,7 @@ $('#tableID').tableExport({type:'pdf',
120120
});
121121
```
122122

123-
```
123+
```javascript
124124
// PDF format using jsPDF and jsPDF Autotable
125125

126126
$('#tableID').tableExport({type:'pdf',
@@ -134,7 +134,7 @@ $('#tableID').tableExport({type:'pdf',
134134
});
135135
```
136136

137-
```
137+
```javascript
138138
// PDF format with callback example
139139

140140
function DoCellData(cell, row, col, data) {}
@@ -151,7 +151,7 @@ $('table').tableExport({fileName: sFileName,
151151
});
152152
```
153153

154-
```
154+
```javascript
155155
// PDF export using pdfmake
156156

157157
$('#tableID').tableExport({type:'pdf',
@@ -163,7 +163,7 @@ $('#tableID').tableExport({type:'pdf',
163163
Options (Default settings)
164164
=======
165165

166-
```
166+
```javascript
167167
csvEnclosure: '"'
168168
csvSeparator: ','
169169
csvUseBOM: true
@@ -217,7 +217,7 @@ mso: fileFormat: 'xlshtml'
217217
numbers: 2
218218
numbers: html: decimalMark: '.'
219219
thousandsSeparator: ','
220-
output: decimalMark: '.',
220+
output: decimalMark: '.'
221221
thousandsSeparator: ','
222222
onAfterSaveToFile: null
223223
onBeforeSaveToFile: null
@@ -235,7 +235,7 @@ pdfmake: enabled: false
235235
color: '#FFFFFF'
236236
bold: true
237237
alignment: 'center'
238-
fillColor: '#34495E
238+
fillColor: '#34495E'
239239
alternateRow: fillColor: '#f5f5f5'
240240
defaultStyle: color: '#000000'
241241
fontSize: 8
@@ -396,3 +396,8 @@ Excel Notes
396396
When exporting in Excel 2000 html format (xlshtml) the default extension of the result file is XLS although the type of the file content is HTML. When you open a file in Microsoft Office Excel 2007 or later that contains content that does not match the files extension, you receive the following warning message:
397397
```The file you are trying to open, 'name.ext', is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now?```
398398
According to this [Knowledge base article](https://support.microsoft.com/en-us/help/948615/error-opening-file-the-file-format-differs-from-the-format-that-the-fi) The warning message can help prevent unexpected problems that might occur because of possible incompatibility between the actual content of the file and the file name extension. The article also gives you some hints to disable the warning message.
399+
400+
Support
401+
=======
402+
The IDE used in the development of this project is supported by [JetBrains](https://jb.gg/OpenSource).
403+
<div><img alt="https://jb.gg/OpenSource" src="https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg" style="width: 130px"></div>

0 commit comments

Comments
 (0)