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
v2 replace perfect scrollbar with ngx-scrollbar #261
Comments
@Bykiev with Angular 16, make sure you've got installed:
For sidebar minimized, you'll have to disable the scrollbar. Try sth like: <app-sidebar #appSidebar [fixed]="true" [display]="'lg'" [minimized]="sidebarMinimized (minimizedChange)="toggleMinimize($event)">
<ng-scrollbar [disabled]="appSidebar.minimized">
<app-sidebar-nav [navItems]="menuItems$ | async" />
</ng-scrollbar>
<app-sidebar-minimizer />
</app-sidebar> |
Thank you, unfortunately it doesn't working as expected. With the disabled |
@Bykiev you're right. In this case, for minimised sidebar, we'll have to remove ng-scrollbar completely. <app-sidebar #appSidebar [fixed]="true" [display]="'lg'" [minimized]="sidebarMinimized (minimizedChange)="toggleMinimize($event)">
<ng-scrollbar [disabled]="appSidebar.minimized" *ngIf="!appSidebar.minimized; else sidebarNav">
<ng-container *ngTemplateOutlet="sidebarNav" />
</ng-scrollbar>
<ng-template #sidebarNav>
<app-sidebar-nav [navItems]="navItems" />
</ng-template>
<app-sidebar-minimizer />
</app-sidebar> |
Thank you, looks much better, but after minimization the scrollbar is not working. I'd like to make it working even the sidebar is minimized |
Hi, I know v2 in not supported, but with angular 16 we can't use viewEngine libraries. That's why we need to replace it with ngx-scrollbar. I've only one issue: when the menu is collapsed, it's not possible to expand child menu items. I've tried to fix it with no luck. Can you please help to make it working?
The text was updated successfully, but these errors were encountered: