Browse Source

use the undefinedText option

Dustin Utecht 6 years ago
parent
commit
1e58595b3e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/extensions/editable/bootstrap-table-editable.js

+ 2 - 2
src/extensions/editable/bootstrap-table-editable.js

@@ -57,8 +57,8 @@ $.BootstrapTable = class extends $.BootstrapTable {
       column.formatter = column.formatter || (value => value)
       column.formatter = column.formatter || (value => value)
       column._formatter = column._formatter ? column._formatter : column.formatter
       column._formatter = column._formatter ? column._formatter : column.formatter
       column.formatter = (value, row, index) => {
       column.formatter = (value, row, index) => {
-        const result = Utils.calculateObjectValue(column,
-          column._formatter, [value, row, index], value)
+        let result = Utils.calculateObjectValue(column, column._formatter, [value, row, index], value)
+        result = typeof result === 'undefined' || result === null ? this.options.undefinedText : result
 
 
         $.each(column, processDataOptions)
         $.each(column, processDataOptions)