Vuesax: Collapse for Navbar

Created on 21 Oct 2018  路  8Comments  路  Source: lusaxweb/vuesax

Is your feature request related to a problem? Please describe.
Navbar cannot automatically collapse in mobile

Describe the solution you'd like

  • Navbar should change to Sidebar form when moving from desktop to mobile
  • Should support responsive/collapse mode for Navbar like bootstrap

Reference
https://bootstrap-vue.js.org/docs/components/navbar

bug good first issue help wanted

Most helpful comment

What if I just want the sidebar component to be opened/closed, instead of the responsive mobile navbar functionality?

This behaviour should be optional.

All 8 comments

Maybe this can help to make PR.

https://codepen.io/joshmanders/pen/PQQBoR

there should be animation/transition in collapse

any update on this?

I'm going to get to work on this, I'll let you know when you're ready for it to be checked, thanks for the contribution

example-responsive

Ready, the functionality was added, I changed the structure a bit in the implementation with a new slot = "title"

Thank you very much for the contribution

What if I just want the sidebar component to be opened/closed, instead of the responsive mobile navbar functionality?

This behaviour should be optional.

@fergardi In the last version we added the new collapse property that generates the hidden menu, thank you very much

@luisDanielRoviraContreras how can I force the collapsible menu to close? If I click on a menu item and navigate to a new route, I want to close the menu automatically.

@luisDanielRoviraContreras how can I force the collapsible menu to close? If I click on a menu item and navigate to a new route, I want to close the menu automatically.

I did it like this:

```
watch: {
$route() {
const button = this.$refs.menuTop.$el.querySelector(
".vs-navbar--btn-responsive"
);
button.click();
}
}

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bigperson picture bigperson  路  3Comments

Cuacha07 picture Cuacha07  路  3Comments

alexflorea2 picture alexflorea2  路  4Comments

webafra picture webafra  路  3Comments

leah-cc picture leah-cc  路  3Comments