| @@ -30,6 +30,7 @@ const TheContent = () => { | |||
| name={route.name} | |||
| render={props => ( | |||
| <CFade> | |||
| {/* <CFade code="br-root"> */} | |||
| <route.component {...props} /> | |||
| </CFade> | |||
| )} /> | |||
| @@ -23,9 +23,10 @@ const DemoComponent1 = () => { | |||
| const apiCall = () => { | |||
| const url = encodeURIComponent("http://localhost:3000/#/DemoComponent2"); | |||
| const dateNow = new Date(); | |||
| fetch('https://localhost:7285/api/PDFGenerator/' + url) | |||
| .then(async res => ({ | |||
| filename: "donwload.pdf", | |||
| filename: "John Doe - " + dateNow +" - report.pdf", | |||
| blob: await res.blob() | |||
| })) | |||
| .then(resObj => { | |||
| @@ -20,16 +20,20 @@ const WidgetsDropdown = lazy(() => import('../widgets/WidgetsDropdown.js')) | |||
| const DemoComponent11 = () => { | |||
| const exec = () => | |||
| { | |||
| PDFEngine(); | |||
| window.print(); | |||
| } | |||
| return ( | |||
| <> | |||
| <button className="float-right btn btn-primary" onClick={PDFEngine}>Execute</button> | |||
| <button className="float-right btn btn-primary" onClick={exec}>Execute</button> | |||
| <br /> | |||
| 11 | |||
| <br /> | |||
| <div> | |||
| <br /> | |||
| <table className="table table-hover table-outline mb-0 d-sm-table" code="br-removecolumn-3"> | |||
| <table className="table table-hover table-outline mb-0 d-sm-table" code="br-shownumberrows-2"> | |||
| <thead className="thead-light"> | |||
| <tr> | |||
| <th className="text-center"><CIcon name="cil-people" /></th> | |||
| @@ -20,10 +20,14 @@ const WidgetsDropdown = lazy(() => import('../widgets/WidgetsDropdown.js')) | |||
| const DemoComponent12 = () => { | |||
| const exec = () => | |||
| { | |||
| PDFEngine(); | |||
| window.print(); | |||
| } | |||
| return ( | |||
| <> | |||
| <button className="float-right btn btn-primary" onClick={PDFEngine}>Execute</button> | |||
| <button className="float-right btn btn-primary" onClick={exec}>Execute</button> | |||
| <br /> | |||
| 12 | |||
| <br /> | |||
| @@ -23,9 +23,10 @@ const DemoComponent2 = () => { | |||
| const apiCall = () => { | |||
| const url = encodeURIComponent("http://localhost:3000/#/DemoComponent2"); | |||
| const dateNow = new Date(); | |||
| fetch('https://localhost:7285/api/PDFGenerator/' + url) | |||
| .then(async res => ({ | |||
| filename: "donwload.pdf", | |||
| filename: "John Doe - " + dateNow +" - report.pdf", | |||
| blob: await res.blob() | |||
| })) | |||
| .then(resObj => { | |||
| @@ -20,9 +20,14 @@ const WidgetsDropdown = lazy(() => import('../widgets/WidgetsDropdown.js')) | |||
| const DemoComponent3 = () => { | |||
| const exec = () => | |||
| { | |||
| PDFEngine(); | |||
| window.print(); | |||
| } | |||
| return ( | |||
| <> | |||
| <button className="float-right btn btn-primary" onClick={PDFEngine}>Execute</button> | |||
| <button className="float-right btn btn-primary" onClick={exec}>Execute</button> | |||
| <br /> | |||
| 3 | |||
| <br /> | |||
| @@ -20,10 +20,14 @@ const WidgetsDropdown = lazy(() => import('../widgets/WidgetsDropdown.js')) | |||
| const DemoComponent4 = () => { | |||
| const exec = () => | |||
| { | |||
| PDFEngine(); | |||
| window.print(); | |||
| } | |||
| return ( | |||
| <> | |||
| <button className="float-right btn btn-primary" onClick={PDFEngine}>Execute</button> | |||
| <button className="float-right btn btn-primary" onClick={exec}>Execute</button> | |||
| <br /> | |||
| 4 | |||
| <br /> | |||
| @@ -20,10 +20,14 @@ const WidgetsDropdown = lazy(() => import('../widgets/WidgetsDropdown.js')) | |||
| const DemoComponent5 = () => { | |||
| const exec = () => | |||
| { | |||
| PDFEngine(); | |||
| window.print(); | |||
| } | |||
| return ( | |||
| <> | |||
| <button className="float-right btn btn-primary" onClick={PDFEngine}>Execute</button> | |||
| <button className="float-right btn btn-primary" onClick={exec}>Execute</button> | |||
| <br /> | |||
| 5 | |||
| <br /> | |||
| @@ -20,10 +20,14 @@ const WidgetsDropdown = lazy(() => import('../widgets/WidgetsDropdown.js')) | |||
| const DemoComponent6 = () => { | |||
| const exec = () => | |||
| { | |||
| PDFEngine(); | |||
| window.print(); | |||
| } | |||
| return ( | |||
| <> | |||
| <button className="float-right btn btn-primary" onClick={PDFEngine}>Execute</button> | |||
| <button className="float-right btn btn-primary" onClick={exec}>Execute</button> | |||
| <br/> | |||
| 6 | |||
| <br/> | |||