-
-
Notifications
You must be signed in to change notification settings - Fork 150
SidebarNavHelper.isActive should check child items for dropdowns #67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello, So i use this code as modification :
And in the "app.module.ts":
|
Hi @kafo85 I'm trying to implement your solution but I'm facing some issues. Note that I installed coreui through npm.
But I get the following error:
I have been using Angular recently so I guess I missed something... Thanks |
@WolfgangVonL Unfortunately, it is not safe since the name Any class members prefixed with barred latin o ( |
OK... Anyway, many thanks @xidedix ! |
v2.7.4 adds
import { SidebarNavHelper } from '@coreui/angular';
export class AppSidebarNavHelper extends SidebarNavHelper {
...
} |
Thanks @xidedix ! Is it also possible to extend directive from source code ? When opening a sidebar nav dropdown, I'd like to close the others but I can't do that from SidebarNavHelper.
My code is working but I can't overwrite the Directive. I've tried that
No errors but my directive « extension » doesn’t seem to be fired. |
Please i have an error "Property 'itemType' does not exist on type 'AppSidebarNavHelper'. What is this.itemType ?? |
@xidedix also after your comment i have an error : "Module not found: Error: Can't resolve '@coreui/angular/lib/sidebar/app-sidebar-nav.service' in '....'" |
@kriefsacha what's your version of |
@xidedix 2.7.4 |
I am afraid it's not possible for directives (afaik). |
Thanks @xidedix Do you think of another way to do that properly ? Or is there any chance that in a future release this feature would be directly implemented in @coreui/angular ? |
This feature will be available as an option in the upcoming CoreUI v3 for Angular. |
Do we know when the v3 will be out ? And how do we update from v2 to v3 ? |
Since V4, it's working without extending "SidebarNavHelper" For me, you can close this issue... |
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 |
Hi,
I have a case when urls of child items do not start with the same path as parent's url. In this scenario item selection is not working as expected. So, is it possible to change SidebarNavHelper.isActive to something like this:
The text was updated successfully, but these errors were encountered: