You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see that showHeader property is marked deprecated in favour of the headericons template:
/** * Expand icon of the toggle button. * @group Props * @deprecated since v15.4.2, use `headericons` template instead. */
@Input() expandIcon: string|undefined;/** * Collapse icon of the toggle button. * @group Props * @deprecated since v15.4.2, use `headericons` template instead. */
@Input() collapseIcon: string|undefined;/** * Specifies if header of panel cannot be displayed. * @group Props * @deprecated since v15.4.2, use `headericons` template instead. */
@Input({transform: booleanAttribute}) showHeader: boolean=true;
But I think it is mistake as there is no equivalent using this template, nor the header template, to achieve the design of the panel in the middle in the example below, using [showHeader]="false":
Using the showHeader input we design a nice panel with correct padding at the top and bottom. Without using that input, the panel displays too much padding at the top (because the header section is actually rendered, even if it's empty)
I wonder then if marking that input prop deprecated was kind of mistake, since the suggestion to use headericons template has nothing to do with the whole header and the goal of showHeader, on the contrary of the 2 other input props.
If it is really is deprecated, then what should we do instead to render a panel without a header section, as the middle one in my example?
Describe the bug
I see that
showHeader
property is marked deprecated in favour of the headericons template:But I think it is mistake as there is no equivalent using this template, nor the header template, to achieve the design of the panel in the middle in the example below, using
[showHeader]="false"
:Using the
showHeader
input we design a nice panel with correct padding at the top and bottom. Without using that input, the panel displays too much padding at the top (because the header section is actually rendered, even if it's empty)I wonder then if marking that input prop deprecated was kind of mistake, since the suggestion to use headericons template has nothing to do with the whole header and the goal of showHeader, on the contrary of the 2 other input props.
If it is really is deprecated, then what should we do instead to render a panel without a header section, as the middle one in my example?
Thank you.
Pull Request Link
No response
Reason for not contributing a PR
Other Reason
Need feedback from the team.
Reproducer
https://stackblitz.com/~/github.com/alaindeurveilher/angular-primeng
Environment
Angular 19 and primeng 19
Angular version
19.1.0
PrimeNG version
v19
Node version
No response
Browser(s)
No response
Steps to reproduce the behavior
create a p-panel without header
Expected behavior
Render a panel with the right padding spaces top and bottom.
The text was updated successfully, but these errors were encountered: