@@ -36,8 +36,13 @@ export function genSlides_Table(pptx) {
3636 pptx . addSection ( { title : "Tables: Auto-Paging Calc" } ) ;
3737 genSlide09 ( pptx ) ;
3838 if ( TESTMODE ) {
39- pptx . addSection ( { title : "Tables: QA" } ) ;
39+ pptx . addSection ( { title : "Tables: QA 01" } ) ;
40+ pptx . addSection ( { title : "Tables: QA 02" } ) ;
41+ pptx . addSection ( { title : "Tables: QA 03" } ) ;
42+ pptx . addSection ( { title : "Tables: QA 04" } ) ;
4043 genSlide10 ( pptx ) ;
44+ pptx . addSection ( { title : "Tables: QA 05" } ) ;
45+ genSlide11 ( pptx ) ;
4146 }
4247}
4348
@@ -540,7 +545,7 @@ function genSlide07(pptx) {
540545 let arrRowsHead2 = [ [ { text : "Title Header" , options : { fill : "0088cc" , color : "ffffff" , align : "center" , bold : true , colspan : 3 , colW : 4 } } ] ] ;
541546 {
542547 arrRows . push ( [
543- { text : "ID#" , options : { fill : "0088cc" , color : "ffffff" , valign : "middle" , hyperlink : { slide : 1 } } } ,
548+ { text : "ID#" , options : { fill : "0088cc" , color : "ffffff" , valign : "middle" } } ,
544549 { text : "First Name" , options : { fill : "0088cc" , color : "ffffff" , valign : "middle" } } ,
545550 { text : "Lorum Ipsum" , options : { fill : "0088cc" , color : "ffffff" , valign : "middle" } } ,
546551 ] ) ;
@@ -892,7 +897,7 @@ function genSlide10(pptx) {
892897
893898 // SLIDE 1:
894899 {
895- slide = pptx . addSlide ( { sectionTitle : "Tables: QA" } ) ;
900+ slide = pptx . addSlide ( { sectionTitle : "Tables: QA 01 " } ) ;
896901
897902 let projRows = [
898903 [
@@ -937,7 +942,7 @@ function genSlide10(pptx) {
937942
938943 // SLIDE 2:
939944 {
940- slide = pptx . addSlide ( { sectionTitle : "Tables: QA" } ) ;
945+ slide = pptx . addSlide ( { sectionTitle : "Tables: QA 02 " } ) ;
941946
942947 let projRows2 = [
943948 [
@@ -982,7 +987,7 @@ function genSlide10(pptx) {
982987
983988 // SLIDE 3:
984989 {
985- slide = pptx . addSlide ( { sectionTitle : "Tables: QA" } ) ;
990+ slide = pptx . addSlide ( { sectionTitle : "Tables: QA 03 " } ) ;
986991
987992 let projRows = [
988993 [
@@ -1029,7 +1034,7 @@ function genSlide10(pptx) {
10291034
10301035 // SLIDE 4: status report style
10311036 {
1032- slide = pptx . addSlide ( { sectionTitle : "Tables: QA" } ) ;
1037+ slide = pptx . addSlide ( { sectionTitle : "Tables: QA 04 " } ) ;
10331038
10341039 let projRows = [
10351040 [
@@ -1066,3 +1071,35 @@ function genSlide10(pptx) {
10661071 } ) ;
10671072 }
10681073}
1074+
1075+ /**
1076+ * SLIDE 11[...]: Test paging with hyperlinks
1077+ * @param {PptxGenJS } pptx
1078+ * @since 4.0.1
1079+ */
1080+ function genSlide11 ( pptx ) {
1081+ let slide = null ;
1082+
1083+ slide = pptx . addSlide ( { sectionTitle : "Tables: QA 05" } ) ;
1084+ slide . addText ( [ { text : "Table Examples: Auto-Paging with Hyperlinks" , options : DEMO_TITLE_TEXTBK } ] , {
1085+ x : 0.23 ,
1086+ y : 0.13 ,
1087+ w : 8 ,
1088+ h : 0.4 ,
1089+ } ) ;
1090+
1091+ const baseTabRows = [
1092+ [
1093+ { text : "white" , options : { fill : { color : "6699CC" } , color : "FFFFFF" } } ,
1094+ { text : "yellow" , options : { fill : { color : "99AACC" } , color : "FFFFAA" } } ,
1095+ { text : "hyperlink" , options : { fill : { color : "AACCFF" } , hyperlink : { slide : 1 } } } ,
1096+ ]
1097+ ] ;
1098+
1099+ const arrTabRows = [ ] ;
1100+ for ( let i = 0 ; i < 36 ; i ++ ) {
1101+ arrTabRows . push ( ...baseTabRows ) ;
1102+ } ;
1103+
1104+ slide . addTable ( arrTabRows , { x : 0.5 , y : 1.0 , w :10 , autoPage : true } ) ;
1105+ }
0 commit comments