Fixed #457 - Allow custom display callbacks in resolving fields

This commit is contained in:
Cagatay Civici 2020-09-08 15:16:20 +03:00
parent 74c5461388
commit 4b3734fc02

View file

@ -58,6 +58,10 @@ export default class ObjectUtils {
}
static resolveFieldData(data, field) {
if (typeof field === 'function') {
return field(data);
}
else {
if (data && field) {
if (field.indexOf('.') === -1) {
return data[field];
@ -75,6 +79,8 @@ export default class ObjectUtils {
return null;
}
}
}
static filter(value, fields, filterValue) {
var filteredItems = [];