11/*
22 |--------------------------------------------------------------------------
3- | This file contains examples of how to use this plugin
3+ | This file contains examples of how to use the jsPDF-AutoTable plugin
44 |--------------------------------------------------------------------------
55 |
66 | To see what the documents generated by these examples looks like you can open
@@ -92,7 +92,7 @@ examples.long = function () {
9292 doc . text (
9393 "Overflow 'linebreak' (default) with one column with long content" ,
9494 14 ,
95- doc . lastAutoTable . finalY + 10
95+ doc . lastAutoTable . finalY + 10 ,
9696 )
9797 doc . autoTable ( {
9898 head : head ,
@@ -246,7 +246,7 @@ examples.defaults = function () {
246246 doc . text ( 'Default options (purple header)' , leftMargin , finalY )
247247 } ,
248248 } ,
249- doc
249+ doc ,
250250 )
251251
252252 var startY = doc . lastAutoTable . finalY + 20
@@ -483,7 +483,7 @@ examples.custom = function () {
483483 data . cell . x + 5 ,
484484 data . cell . y + 2 ,
485485 5 ,
486- 5
486+ 5 ,
487487 )
488488 }
489489 } ,
@@ -496,7 +496,7 @@ examples.custom = function () {
496496 doc . text (
497497 'Conditional styling of cells, rows and columns, cell and table borders, custom font, image in cell' ,
498498 data . settings . margin . left ,
499- 30
499+ 30 ,
500500 )
501501 } ,
502502 } )
@@ -567,8 +567,8 @@ examples.borders = function () {
567567 fillColor : '#f1c40f' ,
568568 fontSize : 15 ,
569569 lineWidth : {
570- top : 1
571- }
570+ top : 1 ,
571+ } ,
572572 } ,
573573 footStyles : {
574574 fillColor : [ 241 , 196 , 15 ] ,
@@ -604,7 +604,11 @@ examples.borders = function () {
604604 bottom : 1 ,
605605 }
606606 }
607- if ( data . row . section === "body" && data . row . index === 1 && data . cell === data . row . cells [ 1 ] ) {
607+ if (
608+ data . row . section === 'body' &&
609+ data . row . index === 1 &&
610+ data . cell === data . row . cells [ 1 ]
611+ ) {
608612 data . cell . styles . fillColor = '#f1c40f' // cell background color
609613 data . cell . styles . lineColor = 'red' // cell border color
610614 data . cell . styles . lineWidth = {
@@ -622,7 +626,7 @@ examples.borders = function () {
622626 'Borders are drawn just at the edge of the cell, which means that half of the border is in the cell and the other half is outside.' ,
623627 data . settings . margin . left ,
624628 30 ,
625- { maxWidth : 180 }
629+ { maxWidth : 180 } ,
626630 )
627631 } ,
628632 } )
@@ -687,7 +691,7 @@ examples.horizontalPageBreakRepeat = function () {
687691 doc . text (
688692 'Split columns across pages if not fit in a single page with a column repeated.' ,
689693 14 ,
690- 20
694+ 20 ,
691695 )
692696 doc . autoTable ( {
693697 head : head ,
@@ -722,7 +726,11 @@ examples.horizontalPageBreakBehaviour = function () {
722726 row [ 'datetime' ] = faker . date . recent ( )
723727 } )
724728
725- doc . text ( 'Split columns across pages if not fit in a single page, showing all the columns first' , 14 , 20 )
729+ doc . text (
730+ 'Split columns across pages if not fit in a single page, showing all the columns first' ,
731+ 14 ,
732+ 20 ,
733+ )
726734 doc . autoTable ( {
727735 head : head ,
728736 body : body ,
0 commit comments