Setting height or width of a sidebar

UI Components for Angular
Post Reply
dlast
Posts: 3
Joined: 15 Jan 2018, 17:50

15 Jan 2018, 18:58

I am trying to set a height of a top sidebar:

Code: Select all

<p-sidebar [(visible)]="visibleSidebar3" position="top" [ngStyle]="{height:auto}">
It seems that the height property is not respected. I tried also the example from documentation:

Code: Select all

<p-sidebar [(visible)]="display" [ngStyle]="{width:'30em'}"></p-sidebar>
But it does not work neither.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 30 guests