Adding filter display and management in Crud front

This commit is contained in:
2023-03-11 22:50:14 +01:00
parent f2ddc4303e
commit ad19a50346
9 changed files with 134 additions and 1 deletions

View File

@@ -206,6 +206,21 @@ export class JsonschemasService {
path.substring(pointFirstPosition + 1)
);
}
get_property_by_path(resource: JSONSchema7, path: string): JSONSchema7 {
const pointFirstPosition = path.indexOf('.')
if (pointFirstPosition == -1) {
return this.get_descendant(resource, path);
}
return this.get_property_by_path(
this.get_descendant(
resource,
path.substring(0, pointFirstPosition)
),
path.substring(pointFirstPosition + 1)
);
}
}
export interface Schema {