File

src/app/services/theme-catalog.service.ts

Description

Scenario theme catalog service

Index

Properties
Methods

Constructor

constructor(http: HttpClient, errorHandler: ErrorHandlerService, locale: string)

Class contructor uses http client

Parameters :
Name Type Optional
http HttpClient No
errorHandler ErrorHandlerService No
locale string No

Methods

getThemeCatalog
getThemeCatalog(modelId: string)

Get scenario themes by model id

Parameters :
Name Type Optional Description
modelId string No

model identifier

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 :
Name Type Optional
category string No
Returns : void
Private setLangIndex
setLangIndex()

set the index for the current language

Returns : void
setSelected
setSelected(id: string)

set selected theme

Parameters :
Name Type Optional
id string No
Returns : void
setSelected2
setSelected2(id: string)

set selected theme this version is used for previous run themes

Parameters :
Name Type Optional
id string No
Returns : void

Properties

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

results matching ""

    No results matching ""