mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-11 01:42:34 +00:00
Fixed #457 - Allow custom display callbacks in resolving fields
This commit is contained in:
parent
74c5461388
commit
4b3734fc02
1 changed files with 19 additions and 13 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue