Skip to content

Commit 6d7d123

Browse files
#12 Exposing quoteStrings export property
1 parent a286209 commit 6d7d123

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

generic-table/directive/generic-table/generic-table.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ angular.module('angular.generic.table').directive('genericTable', function() {
415415

416416
// if exportColumns are passed with options...
417417
if (typeof options.exportColumns !== 'undefined') {
418-
418+
419419
// ...get field settings for all objectKeys in exportColumns array
420420
var exportFields = $filter('map')(options.exportColumns, function(objectKey){
421421
return $filter('filter')($scope.gtFields.slice(0), {objectKey:objectKey}, true)[0];
@@ -433,7 +433,8 @@ angular.module('angular.generic.table').directive('genericTable', function() {
433433
columnOrder:$filter('map')(exportFields,"objectKey"), // get column order
434434
decimalSep:typeof options.decimalSep === 'undefined' ? ',':options.decimalSep,
435435
addByteOrderMarker:typeof options.addBom === 'undefined',
436-
charset:typeof options.charset === 'undefined' ? 'utf-8':options.charset
436+
charset:typeof options.charset === 'undefined' ? 'utf-8':options.charset,
437+
quoteStrings: typeof options.quoteStrings === 'undefined' ? false : options.quoteStrings
437438
};
438439

439440
CSV.stringify(data, headers).then(function(result){
@@ -623,4 +624,4 @@ angular.module('angular.generic.table').directive('genericTable', function() {
623624
}
624625
return array.sort(dynamicSortMultiple(propertyArray));
625626
}
626-
});
627+
});

0 commit comments

Comments
 (0)