We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fc39ad commit 3207b29Copy full SHA for 3207b29
src/features/exporter/js/exporter.js
@@ -1653,7 +1653,13 @@
1653
function defaultExporterFieldCallback(grid, row, col, value) {
1654
// fix to handle cases with 'number : 1' or 'date:MM-dd-YYYY', etc.. We needed to split the string
1655
if (col.cellFilter) {
1656
- return $filter(col.cellFilter.split(': ')[0].trim())(value);
+ var args, filter, arg1, arg2;
1657
+ // remove space, single/double to mantein retro-compatibility
1658
+ args = col.cellFilter.replace(/[\'\"\s]/g, "").split(':');
1659
+ filter = args[0] ? args[0] : null;
1660
+ arg1 = args[1] ? args[1] : null;
1661
+ arg2 = args[2] ? args[2] : null;
1662
+ return $filter(filter)(value, arg1, arg2);
1663
} else {
1664
return value;
1665
}
0 commit comments