Это моя таблица данных
Код: Выделить всё
Batch0 = [ // common columns
{ id: "_index", header: "", width: 45, template: function () { return arguments[4] + 1 } },
{ id: 'fsName', editor: 'text', header: ["Fs Name",{content:'textFilter',compare:reComp}], tooltip: false, width: 180, cssFormat: bgColorFuseDiff, template: fmtDiffObj },
];
Код: Выделить всё
function reComp(value, filter) {
console.log(value); //coming as undefined
console.log(filter);
try {
return RegExp(filter, "i").test(value);
}
catch(e) {
return false;
}
}
Пожалуйста, помогите мне понять, почему значение становится неопределенным.
Подробнее здесь: https://stackoverflow.com/questions/784 ... -undefined
Мобильная версия