ngx-render-material-forms 1.9.8 → 1.9.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1173,6 +1173,12 @@ class MaterialNestedComponent extends MaterialComponent {
1173
1173
  ngAfterViewInit() {
1174
1174
  this.components.changes.subscribe(() => this.render());
1175
1175
  this.render();
1176
+ if (this.element && this.element.nativeElement && this.instance) {
1177
+ // Add custom classes to elements.
1178
+ if (this.instance.component.customClass) {
1179
+ this.element.nativeElement.classList.add(this.instance.component.customClass);
1180
+ }
1181
+ }
1176
1182
  }
1177
1183
  }
1178
1184
  MaterialNestedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialNestedComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
@@ -3972,14 +3978,8 @@ class MaterialDataGridComponent extends MaterialNestedComponent {
3972
3978
  }
3973
3979
  return '';
3974
3980
  }
3975
- ngOnInit() {
3976
- if (this.element && this.element.nativeElement && this.instance) {
3977
- // Add custom classes to elements.
3978
- if (this.instance.component.customClass) {
3979
- this.element.nativeElement.classList.add(this.instance.component.customClass);
3980
- }
3981
- }
3982
- }
3981
+ // ngOnInit(): void {
3982
+ // }
3983
3983
  setInstance(instance) {
3984
3984
  const checkAttribute = instance?.component?.attributes;
3985
3985
  this.showNewProductPicker = this.commonService.checkIsAttributeTrue(checkAttribute, "newproductpicker");