UI: Minor improvements

This commit is contained in:
Igor Kulikov 2020-04-10 17:24:13 +03:00
parent 471ed87ff6
commit a43d3f2fd2

View File

@ -41,7 +41,7 @@ export abstract class EntityComponent<T extends BaseData<HasId>,
@Input()
set entitiesTableConfig(entitiesTableConfig: C) {
this.entitiesTableConfigValue = entitiesTableConfig;
this.setEntitiesTableConfig(entitiesTableConfig);
}
get entitiesTableConfig(): C {
@ -120,6 +120,10 @@ export abstract class EntityComponent<T extends BaseData<HasId>,
return formValue;
}
protected setEntitiesTableConfig(entitiesTableConfig: C) {
this.entitiesTableConfigValue = entitiesTableConfig;
}
abstract buildForm(entity: T): FormGroup;
abstract updateForm(entity: T);