Topic: MDB Vue - Side Nav
I want to add an action on data in the side nav, but i can only parse the URL.
{ name: "Dashboard", to: "dashboard", icon: "tachometer-alt", },
i wish to have
{ name: "Dashboard", to: method() icon: "tachometer-alt", },
or
i wish to have
{ name: "Dashboard", to: link via Router.name icon: "tachometer-alt", },
lgmaxim31
pro premium answered 7 months ago
The solution is :
{ name : "Dashboard", to : router.resolve({name : 'dashboard'}).href, icon: "home" },
Resolved
- User: Pro
- Premium support: Yes
- Technology: Vue
- MDB Version: 6.7.1
- Device: macbook pro 16
- Browser: every
- OS: mac os
- Provided sample code: No
- Provided link: No