From c2480865668f8a73941764bc3ab94f9f9fde5201 Mon Sep 17 00:00:00 2001 From: FrancescoUK Date: Sat, 2 Dec 2017 18:19:10 +0000 Subject: [PATCH] Add table export to pdf (#1681) --- application/views/partial/header.php | 2 +- application/views/reports/tabular.php | 1 + application/views/reports/tabular_details.php | 1 + public/js/manage_tables.js | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/application/views/partial/header.php b/application/views/partial/header.php index a2cda1484..40c2e4775 100644 --- a/application/views/partial/header.php +++ b/application/views/partial/header.php @@ -74,7 +74,7 @@ - + diff --git a/application/views/reports/tabular.php b/application/views/reports/tabular.php index 9e06a49d0..8eead0ed6 100644 --- a/application/views/reports/tabular.php +++ b/application/views/reports/tabular.php @@ -35,6 +35,7 @@ sortable: true, showExport: true, exportDataType: 'all', + exportTypes: ['json', 'xml', 'csv', 'txt', 'sql', 'excel', 'pdf'], pagination: true, showColumns: true, data: , diff --git a/application/views/reports/tabular_details.php b/application/views/reports/tabular_details.php index 2b01a13c8..22560d040 100644 --- a/application/views/reports/tabular_details.php +++ b/application/views/reports/tabular_details.php @@ -53,6 +53,7 @@ uniqueId: 'id', showExport: true, exportDataType: 'all', + exportTypes: ['json', 'xml', 'csv', 'txt', 'sql', 'excel', 'pdf'], data: , iconSize: 'sm', paginationVAlign: 'bottom', diff --git a/public/js/manage_tables.js b/public/js/manage_tables.js index 16a8603c1..71077adbd 100644 --- a/public/js/manage_tables.js +++ b/public/js/manage_tables.js @@ -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') },