added facet "Count non-blank values/column" to menu All
This commit is contained in:
parent
4bdc0b6fb3
commit
229b049f23
@ -582,6 +582,8 @@
|
||||
"core-views/facet-flag": "Facet by flag",
|
||||
"core-views/flagged-rows": "Flagged Rows",
|
||||
"core-views/blank-rows": "Blank Rows",
|
||||
"core-views/count-non-blank-values": "Count non-blank values/column",
|
||||
"core-views/non-blank-values": "Non-blank values per column",
|
||||
"core-views/edit-rows": "Edit rows",
|
||||
"core-views/star-rows": "Star rows",
|
||||
"core-views/unstar-rows": "Unstar rows",
|
||||
|
@ -667,6 +667,23 @@ DataTableView.prototype._createMenuForAllColumns = function(elmt) {
|
||||
}
|
||||
);
|
||||
}
|
||||
},
|
||||
{
|
||||
label: $.i18n('core-views/count-non-blank-values'),
|
||||
id: "core/count-non-blank-values",
|
||||
click: function() {
|
||||
ui.browsingEngine.addFacet(
|
||||
"list",
|
||||
{
|
||||
"name" : $.i18n('core-views/non-blank-values'),
|
||||
"columnName" : "",
|
||||
"expression" : "filter(row.columnNames,cn,isNonBlank(cells[cn].value))"
|
||||
},
|
||||
{
|
||||
"scroll" : false
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user