MDB Vue - Side Nav


Topic: MDB Vue - Side Nav

lgmaxim31 pro premium asked 7 months ago

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" },

Please insert min. 20 characters.
Status

Resolved

Specification of the issue
  • 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
Tags