ngx-wapp-components 2.3.5-alpha.3 → 2.3.6-alpha.1
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.
|
@@ -3451,11 +3451,13 @@ class WSelectButtonComponent {
|
|
|
3451
3451
|
this.onTouch = () => { };
|
|
3452
3452
|
}
|
|
3453
3453
|
ngAfterViewInit() {
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3454
|
+
if (this.stateOptions.every(opt => !opt.class)) {
|
|
3455
|
+
const root = this.viewSelectorEl.nativeElement;
|
|
3456
|
+
const spans = root.querySelectorAll('.p-selectbutton .p-togglebutton');
|
|
3457
|
+
spans.forEach((toggle, i) => {
|
|
3458
|
+
this.renderer.addClass(toggle, this.stateOptions[i].class ?? '');
|
|
3459
|
+
});
|
|
3460
|
+
}
|
|
3459
3461
|
}
|
|
3460
3462
|
getSizeName(value) {
|
|
3461
3463
|
return SizeType[value];
|