mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-24 16:28:40 -04:00
Add table export to pdf (#1681)
This commit is contained in:
@@ -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; ?>
|
||||
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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')
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user