File

qwc/projects/qwc/src/lib/components/qwc-app-shell/qwc-appshell.component.ts

Description

Render qwc-appshell component.

Implements

OnChanges OnDestroy

Metadata

selector qwc-appshell
templateUrl ./qwc-appshell.component.html

Index

Properties
Methods
Inputs
Outputs
HostListeners

Constructor

constructor(appshellService: AppshellService, cdRef: ChangeDetectorRef)
Parameters :
Name Type Optional
appshellService AppshellService No
cdRef ChangeDetectorRef No

Inputs

config
Type : AppShellConfig
isLoading
Default value : false
sidebarConfig
Default value : "collapsed"
sideNavBreakpoint
Default value : 675

Outputs

sidebarStateChange
Type : EventEmitter

Emits when user open of closes appshell side bar. Event data is current expansion state of sidebar "collapsed" | "expanded".

HostListeners

window:resize
window:resize()

Methods

expandNavigationMenu
expandNavigationMenu()

Expand navigation menu

Returns : void

void

navigationContainerClick
navigationContainerClick(event)

Navigation container click

Parameters :
Name Optional Description
event No

Event

Returns : void

void

ngOnChanges
ngOnChanges()
Returns : void
ngOnDestroy
ngOnDestroy()

Ng on destroy lifecyle hook

Returns : void

void

toggleNavigationMenu
toggleNavigationMenu(event?: any)

Toggles navigation menu. Calls open/close upon sidenav instance if called from mobile view.

Parameters :
Name Type Optional
event any Yes
Returns : void

void

updateSidenavType
updateSidenavType()

Based on screen size updating the sidebarMenuType , it can either be fixed/overlay.

Returns : void

void

Properties

showSidebar
Default value : false
sidebarMenuType
Type : string
Default value : "fixed"
sidebarState
Type : string
Default value : "collapsed"
sideNav
Type : ElementRef
Decorators :
@ViewChild('sideNav')
toggleMenuIcon
Type : ElementRef
Decorators :
@ViewChild('toggleMenuIcon')

result-matching ""

    No results matching ""