Sidenav initialization #2353
-
We've purchased the tw-elements pro Individual plan and we need to initialize the Sidenav as follows but without having to call update method. Basically, remove the toggle, modal and position fixed behavior. We also tried to add a scrolling container but failed, can you please help guide us to how we can achieve that without hacking into the component? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @madinah-arabic ! I think you will have to initialize the Sidenav via JS, since you want to use a condition for setting the width of the sidenav. Remove the
As of the container case you can check this example from our documentation: https://tw-elements.com/docs/standard/navigation/sidenav/#side-transition. The preview is not working for some reason but I've copied the example code to a fresh app and it works fine there so feel free to play around with it. If you have other issues or questions for other topics you can post them here: https://mdbootstrap.com/support/cat/twe. This forum is our priority for a pro support. |
Beta Was this translation helpful? Give feedback.
Hi @madinah-arabic !
I think you will have to initialize the Sidenav via JS, since you want to use a condition for setting the width of the sidenav. Remove the
data-twe-sidenav-init
attribute and change the fixed class to relative (in the nav element). Then you can use the js to initialize the sidenav: