Topic: DoubleNav issue
Damian Gemza staff answered 7 years ago
gvonhagel pro commented 7 years ago
Hi Damian, I'm not able to share the entirety of the source code but I'm happy to share the code I use as a Dashboard wrapper. (https://gist.github.com/gvonhagel/01733bb1eab7a8c7d9557cb2d406a050) I wrap the entire dashboard in a div with a class of fixed-sn to give the appropriate behavior and all of the child routes for the Dashboard will appear inside the main element. The problem, however, is that using a mdb-sidenav appends the fixed-sn class to the body, which is not the behavior I want in this case as I already have it on my container div. This is further complicated when I navigate away from the Dashboard routes, as the fixed-sn class persists on the body. The behavior I would like is to either be able to specify whether or not I want the fixed-sn class on the body, or to remove it when the Dashboard page is routed away from. Thanks!Damian Gemza staff commented 7 years ago
Dear Greyson, For now, we haven't got ready-to-use solution for you. We suggest adding a special variable isDashboard with true/false which add/removes styles from body element. We will add your case to our nice-to-have list, and in future, we'll think about implementing this. Best Regards, DamianFREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No