Add table export to pdf (#1681)

This commit is contained in:
FrancescoUK
2017-12-02 18:19:10 +00:00
parent c784a537dd
commit c248086566
4 changed files with 4 additions and 1 deletions

View File

@@ -74,7 +74,7 @@
<link rel="stylesheet" type="text/css" href="dist/opensourcepos.min.css?rel=1a7dd79d6d"/>
<!-- end mincss template tags -->
<!-- start minjs template tags -->
<script type="text/javascript" src="dist/opensourcepos.min.js?rel=b190459b50"></script>
<script type="text/javascript" src="dist/opensourcepos.min.js?rel=bcd3ae91d0"></script>
<!-- end minjs template tags -->
<?php endif; ?>

View File

@@ -35,6 +35,7 @@
sortable: true,
showExport: true,
exportDataType: 'all',
exportTypes: ['json', 'xml', 'csv', 'txt', 'sql', 'excel', 'pdf'],
pagination: true,
showColumns: true,
data: <?php echo json_encode($data); ?>,

View File

@@ -53,6 +53,7 @@
uniqueId: 'id',
showExport: true,
exportDataType: 'all',
exportTypes: ['json', 'xml', 'csv', 'txt', 'sql', 'excel', 'pdf'],
data: <?php echo json_encode($summary_data); ?>,
iconSize: 'sm',
paginationVAlign: 'bottom',

View File

@@ -238,6 +238,7 @@
clickToSelect: true,
showExport: true,
exportDataType: 'all',
exportTypes: ['json', 'xml', 'csv', 'txt', 'sql', 'excel', 'pdf'],
exportOptions: {
fileName: options.resource.replace(/.*\/(.*?)$/g, '$1')
},