Add table export to pdf (#1681)

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

No files matched your search

+1 -1
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; ?>
+1
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); ?>,
@@ -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',
+1
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')
},