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:
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).
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
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: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 :)