Displaying all columns in list
This commit is contained in:
@@ -56,19 +56,19 @@ export class ListComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getColumnDefinition(schema: JSONSchema7) {
|
getColumnDefinition(schema: JSONSchema7) {
|
||||||
if (this.columns.length == 0) {
|
for (let column of this.columns) {
|
||||||
for (let param_name in schema.properties) {
|
if (this.jsonSchemasService.path_exists(schema, column)) {
|
||||||
if (param_name != "_id") {
|
this.displayedColumns.push(column);
|
||||||
this.displayedColumns.push(param_name);
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} else {
|
if (this.displayedColumns.length == 0) {
|
||||||
for (let column of this.columns) {
|
for (let param_name in schema.properties) {
|
||||||
if (this.jsonSchemasService.path_exists(schema, column)) {
|
if (param_name != "_id") {
|
||||||
this.displayedColumns.push(column);
|
this.displayedColumns.push(param_name);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
getColumnValue(row: any, col: string) {
|
getColumnValue(row: any, col: string) {
|
||||||
|
|||||||
Reference in New Issue
Block a user