Hey there,
What do you mean by close it manually without clicking the button? That is how you do it manually.
Do you mean you want to use a different element to trigger the menu? If so, then yes you can set this in the Trigger option.
Or do you mean do it automatically through code? If so, then you can just mimmick a click using jQuery on the button the same way you would with any other element.
I hope that helps
Peter
Hi, thanks for responding. Yes I mean I have two menus. One on the left and to the right is the responsive menu plugin. Now I have this code that if the right menu is open and I click on the left menu the right menu will close and the left will open vice versa. The problem with the code is this, I use this method:
$(‘.leftMenu’).click(function(){
$(‘.leftBox’).toggle();
if($(‘#responsive-menu-button’).hasClass(‘is-active’)){
$(‘#responsive-menu-button’).click();
}
});
this closes the plugin on the right. Now on the other side I have:
$(#responsive-menu-button).click(function(){
if($(‘.leftBox’).is(:visible”)){
$(‘.leftBox’).toggle();
}
});
the second method goes back to the first script and then triggers the plugin click function again. I now that the when the plugin closes it removes some classes which triggers a css transform. I check the ResponsiveMenu.init() script. There’s a function there that triggers to close the plugin nav. How can I use that? The only option I think is to remove the classes. Thanks :))
Hey there,
I don’t think that is possible and unfortunately it’s a lot more complex than just removing some classes.
Without seeing your site it’s impossible to say, have you tried adding .leftBox to the Trigger option?
Peter