mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-01-09 19:18:50 +01:00
selected and expanded fixed
This commit is contained in:
parent
e9b55acbb2
commit
cfd93118df
3 changed files with 16 additions and 22 deletions
|
|
@ -49,28 +49,18 @@ export class Sidebar {
|
|||
if (this.isMenuCollapsed) {
|
||||
this.menuExpand();
|
||||
if (!item.expanded) {
|
||||
setTimeout(function () {
|
||||
item.expanded = !item.expanded;
|
||||
|
||||
// TODO: incomplete
|
||||
// submenu.slideToggle();
|
||||
}, 0);
|
||||
item.expanded = !item.expanded;
|
||||
submenu.slideToggle();
|
||||
}
|
||||
} else {
|
||||
item.expanded = !item.expanded;
|
||||
|
||||
// TODO: incomplete
|
||||
// submenu.slideToggle();
|
||||
submenu.slideToggle();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private isActive(instruction: any[]): boolean {
|
||||
return ;
|
||||
}
|
||||
|
||||
private selectMenuItem() {
|
||||
let isCurrent = (instruction) => (this.router.isRouteActive(this.router.generate([instruction])));
|
||||
let isCurrent = (instruction) => (instruction ? this.router.isRouteActive(this.router.generate([instruction])): false);
|
||||
|
||||
this.menuItems.forEach(function (menu) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue