Browse Source

UI: Added the ability to get the value of a key that contains dots in the name to a table widgets

pull/4173/head
Vladyslav_Prykhodko 6 years ago
parent
commit
477ee90e50
  1. 3
      ui-ngx/src/app/core/utils.ts

3
ui-ngx/src/app/core/utils.ts

@ -324,6 +324,9 @@ export function snakeCase(name: string, separator: string): string {
}
export function getDescendantProp(obj: any, path: string): any {
if (obj.hasOwnProperty(path)) {
return obj[path];
}
return path.split('.').reduce((acc, part) => acc && acc[part], obj);
}

Loading…
Cancel
Save