How to disable showing menu links when click a parent link in slim mode? #2223
Replies: 1 comment 6 replies
-
Hello!
Added new issue: #2226 |
Beta Was this translation helpful? Give feedback.
-
Hello!
Added new issue: #2226 |
Beta Was this translation helpful? Give feedback.
-
Hi!
I'm trying to create a sidenav for my project. I want to enable users to change slim mode with a button and I don't want to show sub-menu items if sidenav in slim mode. I am currently using "sidenav-4" as a guide but I haven't found a api or way to disable opening sub-menus in slim mode. Is there anyway to do that?
Also, I have some images and I want to change their apperance according to slim mode status. What type of ref that I should give them and how should I use this refs with in classes?
Lastly, I am using a data named "isSlim" to check slim mode and changing it's value when user clicks the "slim mode button" but I am not sure about it is a good idea. I am using 'data-te-sidenav-slim="false"' to hide an element in slim mode but I couldn't find a way adding extra css classes like giving padding or etc. I have also tried to give classes to elements on their attributes like '[&[data-te-sidenav-slim-collapsed='false']]:data-[te-sidenav-slim='false']:py-3' but I couldn't manage to make it work.
Beta Was this translation helpful? Give feedback.
All reactions