coreui-free-bootstrap-admin-template icon indicating copy to clipboard operation
coreui-free-bootstrap-admin-template copied to clipboard

Issue changing config and customizing navigation behavior

Open JerryBels opened this issue 2 years ago • 0 comments

Hello,

CoreUI has some functionnalities that seems to be ignored in the docs. I wanted to apply the active state to some menu entries based on conditions, but the JS kept adding it to other elements as well. So I dig in and find that there is this _setActiveLink function that's called. It's great and usually do all the work needed by itself. And this function acts depending on a config:

const Default = {
  activeLinksExact: true,
  groupsAutoCollapse: true
}

I don't see a way for us to change this config, for example to set activeLinksExact to false. Also, there should probably be a way to instruct CoreUI to not mess with classes, so _setActiveLink should be fired conditionally (depending on some sort of config as well).

Thanks :)

JerryBels avatar May 20 '22 07:05 JerryBels