File

src/ui/menu/smart-menu-structure.service.ts

Index

Properties
Methods

Constructor

constructor(smartServiceAdapter: SmartServiceAdapter, smartHttp: SmartHttpService, smartConfig: SmartConfig, router: Router, navigationService: SmartNavigationService)
Parameters :
Name Type Optional
smartServiceAdapter SmartServiceAdapter No
smartHttp SmartHttpService No
smartConfig SmartConfig No
router Router No
navigationService SmartNavigationService No

Methods

getHamburgerMenuStructure
getHamburgerMenuStructure(structureCode: string)
Parameters :
Name Type Optional Default value
structureCode string No this.smartConfig.menuStructureCode
Returns : Observable<HamburgerMenuStructureItem[]>

Observable<HamburgerMenuStructureItem[]>

initMenuStructure
initMenuStructure(structureCode: string, expanded)
Parameters :
Name Type Optional Default value
structureCode string No this.smartConfig.menuStructureCode
expanded No false
Returns : void
performItemAction
performItemAction(id: string)
Parameters :
Name Type Optional
id string No
Returns : void

Properties

menuStructure
Type : ReplaySubject<SmartMenuStructureItem[]>
Default value : new ReplaySubject( 1 )

result-matching ""

    No results matching ""