Added 'Download PDF' option using jsPDF.

This commit is contained in:
Przemek Wiech
2019-03-03 01:17:44 +01:00
parent 1083708e15
commit 730642fb4e
5 changed files with 46 additions and 15 deletions

View File

@@ -169,8 +169,9 @@ export class App extends React.Component<RouteComponentProps, {}> {
)
}
onPrint={() => this.chartRef && this.chartRef.print()}
onDownloadSvg={() => this.chartRef && this.chartRef.downloadSvg()}
onDownloadPdf={() => this.chartRef && this.chartRef.downloadPdf()}
onDownloadPng={() => this.chartRef && this.chartRef.downloadPng()}
onDownloadSvg={() => this.chartRef && this.chartRef.downloadSvg()}
/>
)}
/>