src/app/top-toolbar/top-toolbar.component.ts
This component is responsible for showing the top bar containing the home icon on the left-hand side and the mock settings and user icon as well as the functional log out button on the right-hand side. It does NOT determine whether to show the sandwich menu icon itself, but gets this information passed from FrameComponent.
selector | app-top-toolbar |
styleUrls | ./top-toolbar.component.scss |
templateUrl | ./top-toolbar.component.html |
Properties |
|
Methods |
|
Inputs |
Outputs |
constructor(breakpointObserver: BreakpointObserver, authService: AuthenticationService, dialog: MatDialog)
|
||||||||||||
Parameters :
|
showMenuButton | |
Type : boolean
|
|
Default value : false
|
|
menuClick | |
Type : EventEmitter
|
|
Public handleClick |
handleClick()
|
Returns :
void
|
Public openSettingsDialog |
openSettingsDialog()
|
Returns :
void
|
Public authService |
Type : AuthenticationService
|
isHandset$ |
Type : Observable<boolean>
|
Default value : this.breakpointObserver.observe(Breakpoints.Handset).pipe(
map((result) => result.matches),
shareReplay()
)
|
./top-toolbar.component.scss