src/app/frame/frame.component.ts
This component holds the 'frame' of the application containing the top bar, the side bar and the main container into which individual views are rendered based on the url. It also bridges between top bar and side menu: When the user clicks the menu icon in the topbar, this is communicated to the navigation drawer via this.showDrawer The component itself checks whether the user is currently in a project and passes this information down to the sidebar and topbar. It also checks the display size and makes the side menu an overlay when on handset size.
selector | app-frame |
styleUrls | ./frame.component.scss |
templateUrl | ./frame.component.html |
Properties |
|
Methods |
constructor(breakpointObserver: BreakpointObserver, ss: StateService)
|
|||||||||
Defined in src/app/frame/frame.component.ts:33
|
|||||||||
Parameters :
|
prepareRoute | ||||||
prepareRoute(outlet: RouterOutlet)
|
||||||
Defined in src/app/frame/frame.component.ts:46
|
||||||
Parameters :
Returns :
any
|
toggleMenu |
toggleMenu()
|
Defined in src/app/frame/frame.component.ts:42
|
When user clicks sandwich this.showDrawer boolean changes value.
Returns :
void
|
isHandset$ |
Type : Observable<boolean>
|
Default value : this.breakpointObserver.observe(Breakpoints.Handset).pipe(
map((result) => result.matches),
shareReplay()
)
|
Defined in src/app/frame/frame.component.ts:30
|
Public isProjectSet$ |
Default value : new BehaviorSubject<boolean>(false)
|
Defined in src/app/frame/frame.component.ts:27
|
Public showDrawer |
Default value : true
|
Defined in src/app/frame/frame.component.ts:28
|
Public ss |
Type : StateService
|
Defined in src/app/frame/frame.component.ts:35
|
./frame.component.scss