Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: MDB Vue - Side Nav

lgmaxim31 free asked 4 years 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 free answered 4 years ago


The solution is :

{ name : "Dashboard", to : router.resolve({name : 'dashboard'}).href, icon: "home" },


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Vue
  • MDB Version: 6.7.1
  • Device: macbook pro 16
  • Browser: every
  • OS: mac os
  • Provided sample code: No
  • Provided link: No