@insticc/react-datagrid-2 1.0.20 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -109,7 +109,13 @@ var ExportActions = function ExportActions(props) {
|
|
|
109
109
|
var tableData = rows.map(function (row) {
|
|
110
110
|
return Object.values(row.original);
|
|
111
111
|
});
|
|
112
|
-
var
|
|
112
|
+
var columns = props.table.getAllFlatColumns();
|
|
113
|
+
var columnsToExport = [];
|
|
114
|
+
columns.forEach(function (col) {
|
|
115
|
+
if (col.id !== 'mrt-row-expand' || col.id !== 'mrt-row-expand') {
|
|
116
|
+
columnsToExport.push(col.id);
|
|
117
|
+
}
|
|
118
|
+
});
|
|
113
119
|
// Get the column headers and data for the selected columns
|
|
114
120
|
// Iterate through the rows and format the data for the PDF
|
|
115
121
|
var pageWidth = doc.internal.pageSize.width; // Get page width
|
package/build/wrapper/index.js
CHANGED
|
@@ -14,7 +14,6 @@ var _ColumnFilter = _interopRequireDefault(require("./ColumnFilter"));
|
|
|
14
14
|
var _ExportActions = _interopRequireDefault(require("./ExportActions"));
|
|
15
15
|
var _ActionButton = _interopRequireDefault(require("./ActionButton"));
|
|
16
16
|
var _filters = require("./utils/filters");
|
|
17
|
-
require("material-react-table/dist/index.css");
|
|
18
17
|
require("bootstrap/dist/css/bootstrap.min.css");
|
|
19
18
|
require("semantic-ui-css/semantic.min.css");
|
|
20
19
|
require("./styles/styles.css");
|