Add "Blank out cells (empty string)" to common transformations menu

This commit is contained in:
Owen Stephens 2018-02-18 23:35:00 +00:00
parent 0cff8a5c6c
commit a8b5052b00
2 changed files with 6 additions and 0 deletions

View File

@ -615,6 +615,7 @@
"to-date": "To date",
"to-text": "To text",
"blank-out": "Blank out cells (null)",
"blank-out-empty": "Blank out cells (empty string)",
"fill-down": "Fill down",
"blank-down": "Blank down",
"split-cells": "Split multi-valued cells",

View File

@ -268,6 +268,11 @@ DataTableColumnHeaderUI.extendMenu(function(column, columnHeaderUI, menu) {
id: "core/to-blank",
label: $.i18n._('core-views')["blank-out"],
click: function() { doTextTransform("null", "keep-original", false, ""); }
},
{
id: "core/to-empty",
label: $.i18n._('core-views')["blank-out-empty"],
click: function() { doTextTransform("\"\"", "keep-original", false, ""); }
}
]
},