Correcting column selection in list compoenent
This commit is contained in:
@@ -8,9 +8,10 @@ export class BaseEntitiesComponent {
|
||||
}
|
||||
|
||||
@Component({
|
||||
template: '<crud-list [resource]="this.resource" [schema]="this.schema"></crud-list>'
|
||||
template: '<crud-list [resource]="this.resource" [schema]="this.schema" [columns]="this.columns"></crud-list>'
|
||||
})
|
||||
export class EntityListComponent extends BaseEntitiesComponent{
|
||||
export class EntityListComponent extends BaseEntitiesComponent {
|
||||
columns = ['label', 'address', 'entity_data.type']
|
||||
}
|
||||
|
||||
@Component({
|
||||
|
||||
@@ -50,7 +50,7 @@ export class ListComponent implements OnInit {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (let column in this.columns) {
|
||||
for (let column of this.columns) {
|
||||
if (column in schemas.properties) {
|
||||
this.displayedColumns.push(column);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user