@@ -216,7 +216,7 @@ export default class Example23 {
216216 } ,
217217 excelExportOptions : {
218218 style : {
219- font : { outline : true , italic : true , color : 'FF215073' } ,
219+ font : { outline : false , italic : true , color : 'FF215073' } ,
220220 format : '$0.00' , // currency format
221221 } ,
222222 width : 12 ,
@@ -271,7 +271,7 @@ export default class Example23 {
271271 } ,
272272 excelExportOptions : {
273273 style : {
274- font : { outline : true , italic : true , color : 'FFC65911' } ,
274+ font : { outline : false , italic : true , color : 'FFC65911' } ,
275275 format : '$0.00' , // currency format
276276 } ,
277277 width : 12 ,
@@ -311,7 +311,7 @@ export default class Example23 {
311311 } ,
312312 excelExportOptions : {
313313 style : {
314- font : { outline : true , bold : true , color : 'FF005A9E' } ,
314+ font : { outline : false , bold : true , color : 'FF005A9E' } ,
315315 format : '$0.00' , // currency format
316316 } ,
317317 width : 12 ,
@@ -359,9 +359,18 @@ export default class Example23 {
359359 customExcelHeader : ( workbook , sheet ) => {
360360 const excelFormat = workbook . getStyleSheet ( ) . createFormat ( {
361361 // every color is prefixed with FF, then regular HTML color
362- font : { size : 18 , fontName : 'Calibri' , bold : true , color : 'FFFFFFFF' } ,
362+ font : {
363+ size : 18 ,
364+ fontName : 'Calibri' ,
365+ bold : true ,
366+ color : 'FFFFFFFF' ,
367+ } ,
363368 alignment : { wrapText : true , horizontal : 'center' } ,
364- fill : { type : 'pattern' , patternType : 'solid' , fgColor : 'FF203764' } ,
369+ fill : {
370+ type : 'pattern' ,
371+ patternType : 'solid' ,
372+ fgColor : 'FF203764' ,
373+ } ,
365374 } ) ;
366375 sheet . setRowInstructions ( 0 , { height : 40 } ) ; // change height of row 0
367376
@@ -465,17 +474,32 @@ export default class Example23 {
465474 excelVal = `(${ excelPriceCol } *${ excelQtyCol } )+${ excelTaxesCol } ` ;
466475 break ;
467476 }
468- return { value : excelVal , metadata : { type : 'formula' , style : excelFormatId } } ;
477+ return {
478+ value : excelVal ,
479+ metadata : { type : 'formula' , style : excelFormatId } ,
480+ } ;
469481 }
470482
471483 getData ( ) {
472484 let i = 1 ;
473485 const datasetTmp = [
474486 { id : i ++ , name : 'Oranges' , qty : 4 , taxable : false , price : 2.22 } ,
475487 { id : i ++ , name : 'Apples' , qty : 3 , taxable : false , price : 1.55 } ,
476- { id : i ++ , name : 'Honeycomb Cereals' , qty : 2 , taxable : true , price : 4.55 } ,
488+ {
489+ id : i ++ ,
490+ name : 'Honeycomb Cereals' ,
491+ qty : 2 ,
492+ taxable : true ,
493+ price : 4.55 ,
494+ } ,
477495 { id : i ++ , name : 'Raisins' , qty : 77 , taxable : false , price : 0.23 } ,
478- { id : i ++ , name : 'Corn Flake Cereals' , qty : 1 , taxable : true , price : 6.62 } ,
496+ {
497+ id : i ++ ,
498+ name : 'Corn Flake Cereals' ,
499+ qty : 1 ,
500+ taxable : true ,
501+ price : 6.62 ,
502+ } ,
479503 { id : i ++ , name : 'Tomatoes' , qty : 3 , taxable : false , price : 1.88 } ,
480504 { id : i ++ , name : 'Butter' , qty : 1 , taxable : false , price : 3.33 } ,
481505 { id : i ++ , name : 'BBQ Chicken' , qty : 1 , taxable : false , price : 12.33 } ,
0 commit comments