Basically in my web app there are a few pages where I do not want the panels, start, login, onboarding… the rest of the app needs them.
leftBreakpoint: 768,
rightBreakpoint: 1440,
Is it possible to set after initialisation? I have not managed to do this but maybe there is a trick to this? Thanks!
You can try it like app.params.panel.leftBreakpoint = 768
Correct will be the following to enable breakpoints:
app.params.panel.leftBreakpoint = 768;
app.params.panel.rightBreakpoint = 1024;
app.panel.left.initBreakpoints();
app.panel.right.initBreakpoints();
4 Likes
Once panel breakpoints are initialized how can you undone that?
For example I have the Login page where I don’t want to show the left panel and on the rest of the pages I do want to show it.
It worked fine with those params. But when I logout and go back to Login page the panel is visible.
you can add .no-swipe-panel class to page div.
<div class='page no-swipe-panel>
...
page
...
</div>
Sorry, it’s not working. Is that class available on V2?
thanks.
while entering page it works. After reload initBreakpoints(); throws error in console