Fixed #457 - Allow custom display callbacks in resolving fields
parent
74c5461388
commit
4b3734fc02
|
@ -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 = [];
|
||||
|
||||
|
|
Loading…
Reference in New Issue