Skip to content

Commit 74a5f4a

Browse files
committed
Add worksheet name to options
Allow user to name his worksheet on excel file
1 parent a891806 commit 74a5f4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tableExport.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ THE SOFTWARE.*/
2727
separator: ',',
2828
ignoreColumn: [],
2929
tableName:'yourTableName',
30+
worksheetName: 'yourWorksheetName',
3031
type:'csv',
3132
pdfFontSize:14,
3233
pdfLeftMargin:20,
@@ -259,7 +260,7 @@ THE SOFTWARE.*/
259260
excelFile += "<x:ExcelWorksheets>";
260261
excelFile += "<x:ExcelWorksheet>";
261262
excelFile += "<x:Name>";
262-
excelFile += "{worksheet}";
263+
excelFile += "" + defaults.worksheetName + "";
263264
excelFile += "</x:Name>";
264265
excelFile += "<x:WorksheetOptions>";
265266
excelFile += "<x:DisplayGridlines/>";

0 commit comments

Comments
 (0)