Reputation: 1712
I have not been successful at hiding the close icon for the p-sidebar. Probably something simple, but I've tried:
<p-sidebar [(visible)]="displaySideBar" position="left" showCloseIcon="false">
<p-sidebar [(visible)]="displaySideBar" position="left" showCloseIcon="hideIconVariable">
<p-sidebar [(visible)]="displaySideBar" position="left" [showCloseIcon]="false">
<p-sidebar [(visible)]="displaySideBar" position="left" [showCloseIcon]="hideIconVariable">
The last 2 example produced errors. Thanks for any help!
Upvotes: 2
Views: 3444
Reputation: 97
You need use [showCloseIcon]="false". Because showCloseIcon="false" getting by string i think, you can check with console.log() :)
Upvotes: 2