ods-component-lib 1.17.148 → 1.17.151

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.
package/dist/index.js CHANGED
@@ -1285,7 +1285,16 @@ function grid(props, dataGridRef) {
1285
1285
  excel_exporter.exportDataGrid({
1286
1286
  component: e.component,
1287
1287
  worksheet: workbook.addWorksheet('Main sheet'),
1288
- autoFilterEnabled: true
1288
+ autoFilterEnabled: true,
1289
+ customizeCell: function customizeCell(_ref) {
1290
+ var gridCell = _ref.gridCell,
1291
+ excelCell = _ref.excelCell;
1292
+ if (gridCell.rowType === 'data') {
1293
+ if (gridCell.column.dataField === 'IsActive') {
1294
+ excelCell.value = gridCell.value == "Active" ? "Aktif" : "Pasif";
1295
+ }
1296
+ }
1297
+ }
1289
1298
  }).then(function () {
1290
1299
  workbook.xlsx.writeBuffer().then(function (buffer) {
1291
1300
  fileSaverEs.saveAs(new Blob([buffer], {