From a73867b7befb41682020be92efb2315a0965e593 Mon Sep 17 00:00:00 2001 From: Feher-Zsofia <75075440+Feher-Zsofia@users.noreply.github.com> Date: Tue, 26 Sep 2023 11:17:26 +0200 Subject: [PATCH] Update tabview.ts https://github.com/primefaces/primeng/issues/13746 --- src/app/components/tabview/tabview.ts | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/app/components/tabview/tabview.ts b/src/app/components/tabview/tabview.ts index f67a4175872..2a431913550 100755 --- a/src/app/components/tabview/tabview.ts +++ b/src/app/components/tabview/tabview.ts @@ -73,12 +73,24 @@ export class TabPanel implements AfterContentInit, OnDestroy { * Inline style of the tab header. * @group Props */ - @Input() headerStyle: { [klass: string]: any } | null | undefined; + @Input() get headerStyle(): { [klass: string]: any } | null | undefined { + return this._headerStyle; + } + set headerStyle(headerStyle: { [klass: string]: any } | null | undefined) { + this._headerStyle = headerStyle; + this.tabView.cd.markForCheck(); + } /** * Style class of the tab header. * @group Props */ - @Input() headerStyleClass: string | undefined; + @Input() get headerStyleClass(): string | undefined { + return this._headerStyleClass; + } + set headerStyleClass(headerStyleClass: string | undefined) { + this._headerStyleClass = headerStyleClass; + this.tabView.cd.markForCheck(); + } /** * Whether a lazy loaded panel should avoid getting loaded again on reselection. * @group Props @@ -180,6 +192,10 @@ export class TabPanel implements AfterContentInit, OnDestroy { closed: boolean = false; view: EmbeddedViewRef | null = null; + + _headerStyle: { [klass: string]: any } | null | undefined; + + _headerStyleClass: string | undefined; _selected: boolean | undefined;