Add default parameter in close canvas
This commit is contained in:
parent
1be082c2f3
commit
f2a2c52d43
|
@ -87,6 +87,7 @@ export class NavigationBarComponent implements OnInit, OnDestroy, OnChanges {
|
||||||
value: "Open Access"
|
value: "Open Access"
|
||||||
};
|
};
|
||||||
@ViewChild('search_input') search_input: SearchInputComponent;
|
@ViewChild('search_input') search_input: SearchInputComponent;
|
||||||
|
@ViewChild('canvas') canvas: ElementRef;
|
||||||
public routerHelper: RouterHelper = new RouterHelper();
|
public routerHelper: RouterHelper = new RouterHelper();
|
||||||
|
|
||||||
constructor(private router: Router,
|
constructor(private router: Router,
|
||||||
|
@ -102,7 +103,6 @@ export class NavigationBarComponent implements OnInit, OnDestroy, OnChanges {
|
||||||
this.keyword = "";
|
this.keyword = "";
|
||||||
}));
|
}));
|
||||||
this.subs.push(this.layoutService.hasStickyHeaderOnMobile.subscribe(hasStickyHeaderOnMobile => {
|
this.subs.push(this.layoutService.hasStickyHeaderOnMobile.subscribe(hasStickyHeaderOnMobile => {
|
||||||
console.log(hasStickyHeaderOnMobile);
|
|
||||||
this.hasStickyHeaderOnMobile = hasStickyHeaderOnMobile;
|
this.hasStickyHeaderOnMobile = hasStickyHeaderOnMobile;
|
||||||
}))
|
}))
|
||||||
this.initialize();
|
this.initialize();
|
||||||
|
@ -120,7 +120,7 @@ export class NavigationBarComponent implements OnInit, OnDestroy, OnChanges {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
closeCanvas(element) {
|
closeCanvas(element = this.canvas.nativeElement) {
|
||||||
UIkit.offcanvas(element).hide();
|
UIkit.offcanvas(element).hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue