src/app/services/theme-catalog.service.ts
Scenario theme catalog service
Properties |
|
Methods |
constructor(http: HttpClient, errorHandler: ErrorHandlerService, locale: string)
|
||||||||||||
Class contructor uses http client
Parameters :
|
getThemeCatalog | ||||||||
getThemeCatalog(modelId: string)
|
||||||||
Get scenario themes by model id
Parameters :
Returns :
void
|
getThemeUpdateListener |
getThemeUpdateListener()
|
Get theme catalog updated subject
Returns :
any
|
resetAllSelections |
resetAllSelections()
|
Resets selection on all scenario themes
Returns :
void
|
resetThemeSelected | ||||||
resetThemeSelected(category: string)
|
||||||
Reset selected theme
Parameters :
Returns :
void
|
Private setLangIndex |
setLangIndex()
|
set the index for the current language
Returns :
void
|
setSelected | ||||||
setSelected(id: string)
|
||||||
set selected theme
Parameters :
Returns :
void
|
setSelected2 | ||||||
setSelected2(id: string)
|
||||||
set selected theme this version is used for previous run themes
Parameters :
Returns :
void
|
Public lanIndex |
Type : number
|
Default value : 0
|
Language Index |
Public locale |
Type : string
|
Decorators :
@Inject(LOCALE_ID)
|
Private themeCatalog |
Type : Theme[]
|
Default value : []
|
Theme listing |
Private themeCatalogUpdated |
Default value : new Subject<Theme[]>()
|
Theme catalog updated subject |