Michael Witt
Michael Witt

Reputation: 1712

Setting primeng close icon to hidden for the p-sidebar

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

Answers (1)

foxgang
foxgang

Reputation: 97

You need use [showCloseIcon]="false". Because showCloseIcon="false" getting by string i think, you can check with console.log() :)

Upvotes: 2

Related Questions