How to close panel from JS?


#1

I have this HTML:

<a href="#" onclick="closepanel();" class="button">Close Right Panel</a>

and JS looks like this:

function      closepanel(){
  if(app.panel.right.opened===true){
    app.panel.close('right',true);
  }
}

why is panel not closed?


#3

Anybody, please… how to close panel for JS?


#4

Looks like your right panel opened by breakpoint. I can’t be closed in this case, unset rightBreakpoint app parameter to be able to open/close it http://framework7.io/docs/panel.html#panel-app-parameters


#5

Great, thank you so much.