UNPKG

handsontable

Version:

Handsontable is a JavaScript Spreadsheet Component available for React, Angular and Vue.

16 lines (15 loc) 519 B
import * as C from "../../../i18n/constants.mjs"; import { registerCondition } from "../conditionRegisterer.mjs"; export var CONDITION_NAME = 'empty'; /** * @param {object} dataRow The object which holds and describes the single cell value. * @returns {boolean} */ export function condition(dataRow) { return dataRow.value === '' || dataRow.value === null || dataRow.value === void 0; } registerCondition(CONDITION_NAME, condition, { name: C.FILTERS_CONDITIONS_EMPTY, inputsCount: 0, showOperators: true });