PrimeNG 18: Panel Component - showHeader deprecation note is confusing #2955
Unanswered
thomas-w-grant
asked this question in
PrimeNG
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
❓ Is the deprecation note for showHeader correct in source code for PrimeNG v18 Panel component?
The source code reads:
If I am correctly understanding what showHeader is, I don't see how headericons template is a logical equivalent. I am looking to hide the header (e.g. background color and other style elements associated with the header) when I don't want/need it.
Looking at the component's template, it looks like showHeader is the only thing that will drive whether .p-panel-header div will be rendered.
<div class="p-panel-header" *ngIf="showHeader" (click)="onHeaderClick($event)" [attr.id]="id + '-titlebar'">
I don't see headericons template anywhere near the logic that shows/hides the
<div class="p-panel-header
.Beta Was this translation helpful? Give feedback.
All reactions