ngx-render-material-forms 1.9.8 → 2.0.0
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.
- package/esm2020/lib/components/datagrid/datagrid.component.mjs +15 -9
- package/fesm2015/ngx-render-material-forms.js +14 -8
- package/fesm2015/ngx-render-material-forms.mjs.map +1 -1
- package/fesm2020/ngx-render-material-forms.js +14 -8
- package/fesm2020/ngx-render-material-forms.mjs.map +1 -1
- package/lib/components/datagrid/datagrid.component.d.ts +0 -1
- package/package.json +1 -1
|
@@ -3959,6 +3959,12 @@ class MaterialDataGridComponent extends MaterialNestedComponent {
|
|
|
3959
3959
|
this.dropdownL4Label = '';
|
|
3960
3960
|
this.isCustomerCountryFiltered = false;
|
|
3961
3961
|
this.emptyArray = false;
|
|
3962
|
+
if (this.element && this.element.nativeElement && this.instance) {
|
|
3963
|
+
// Add custom classes to elements.
|
|
3964
|
+
if (this.instance.component.customClass) {
|
|
3965
|
+
this.element.nativeElement.classList.add(this.instance.component.customClass);
|
|
3966
|
+
}
|
|
3967
|
+
}
|
|
3962
3968
|
}
|
|
3963
3969
|
getColumnLabel(column) {
|
|
3964
3970
|
return column.label || column.key;
|
|
@@ -3972,14 +3978,8 @@ class MaterialDataGridComponent extends MaterialNestedComponent {
|
|
|
3972
3978
|
}
|
|
3973
3979
|
return '';
|
|
3974
3980
|
}
|
|
3975
|
-
ngOnInit() {
|
|
3976
|
-
|
|
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");
|
|
@@ -4079,6 +4079,12 @@ class MaterialDataGridComponent extends MaterialNestedComponent {
|
|
|
4079
4079
|
});
|
|
4080
4080
|
return viewContainer ? viewContainer : null;
|
|
4081
4081
|
};
|
|
4082
|
+
if (this.element && this.element.nativeElement && this.instance) {
|
|
4083
|
+
// Add custom classes to elements.
|
|
4084
|
+
if (this.instance.component.customClass) {
|
|
4085
|
+
this.element.nativeElement.classList.add(this.instance.component.customClass);
|
|
4086
|
+
}
|
|
4087
|
+
}
|
|
4082
4088
|
}
|
|
4083
4089
|
removeColumn(columnName) {
|
|
4084
4090
|
this.displayedColumnsNew = this.displayedColumnsNew.filter(column => column !== columnName);
|