keep sidebar open and disable mask #381
-
I would like to use a sidebar to hold navigation options, but also to have it kept open and to remove the mask so that a user can access the content in the body. An example can be found here - scroll down a bit to see the 'persistent drawer'. I find primereact much easier to use and prefer it over mui, which is why I would like to see if I can get the sidebar to work in this way. Does anyone know if this can be done on my end (for example via css class override)? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
So after playing with it a bit, I found that setting dismissable={false} and modal={false} gets me most of the way there. The only thing left is to change the width of the body (outside of the sidebar) based on whether or not it is open. Is there a simple way to do this? |
Beta Was this translation helpful? Give feedback.
So after playing with it a bit, I found that setting dismissable={false} and modal={false} gets me most of the way there. The only thing left is to change the width of the body (outside of the sidebar) based on whether or not it is open. Is there a simple way to do this?