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: How to add link to SideNavCat with no collapse list

CartoonNetwork159 pro asked 6 years ago


Hi, I have some questions with SideNav.
  1. How to add link to SideNavCat (using to="/" not href="/") and don't have dropdown menu ?
  2. How to hide icon angle-down and angle-up in SideNavCat ?
Thanks.

Jakub Mandra staff answered 6 years ago


Hi, Just use <SideNavLink to="#" ... /> instead of SideNavCat (which is a dropdown element).   Best

CartoonNetwork159 pro commented 6 years ago

And how to add hover and active effect on <SideNavLink/> ?


Jakub Mandra staff commented 6 years ago

It should have hover effect by default.

We did not prepare `active` prop. Thank you for pointing out, we will add it :)

You can use `className="collapsible-header active"` on your `SideNavLink` for active state.

 

Regards



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.7.1
  • Device: MAC Pro
  • Browser: Google Chrome
  • OS: MACOS
  • Provided sample code: No
  • Provided link: No