src/app/services/ui/ui.service.ts
A UI service.
Properties |
|
Methods |
|
Accessors |
constructor(imageService: ImageService, localizationService: LocalizationService, entitiesModel: EntitiesModel, locationReload: () => void)
|
||||||||||||||||||||
Constructs the UI service. ~constructor
Parameters :
|
Public chartName | ||||||||
chartName(key: string)
|
||||||||
Names a chart element.
Parameters :
Returns :
string
The chart element name. |
Public getFrequencyStyle | ||||||||||||
getFrequencyStyle(frequency: any[], emphasis: boolean)
|
||||||||||||
Frequency style.
Parameters :
Returns :
{ color: string; } | { 'font-size': string; 'font-weight': any; color: string; }
The frequency style. |
Public id | ||||||||
id(key: string)
|
||||||||
Calculates id of an element.
Parameters :
Returns :
string
The id. |
Public label | ||||||||
label(key: string)
|
||||||||
Labels an element.
Parameters :
Returns :
string
The label name. |
Public linkLabel | ||||||||
linkLabel(key: string | undefined)
|
||||||||
Names an aria-label link.
Parameters :
Returns :
string
The aria-label link name. |
Public tabName | ||||||||
tabName(key: string)
|
||||||||
Names a header aria-labelledby tab.
Parameters :
Returns :
string
The header aria-labelledby tab name. |
Public uiSlowText | ||||||||
uiSlowText(key: string)
|
||||||||
UI slow safe text. Defaults to blank and not placeholder.
Parameters :
Returns :
string
The internationalized slow text. |
Public uiText | ||||||||
uiText(key: string)
|
||||||||
UI safe text. Defaults to placeholder.
Parameters :
Returns :
string
The internationalized text. |
Public windowReload |
windowReload()
|
Reload window.
Returns :
void
|
Public Readonly componentName |
Type : string
|
Default value : ''
|
Main component name. Used for a base of the internal anchors. |
Public Readonly frequenciesDivider |
Type : string
|
Default value : '•'
|
Frequencies divider object. |
Public Readonly imageService |
Type : ImageService
|
The image service injected dependency.
|
Public Readonly linkToThisSymbol |
Type : string
|
Default value : '◆'
|
Link-to-this symbol. |
Public Readonly localizationService |
Type : LocalizationService
|
The localization service injected dependency.
|
Public Readonly tintedToggled$ |
Default value : new EventEmitter<boolean>()
|
Tinted toggled event emitter. |
Public Readonly uiInvalidated$ |
Default value : new EventEmitter<boolean>()
|
UI invalidated event emitter. |
ui |
getui()
|
UI data getter. |
nonBreakingSpace |
getnonBreakingSpace()
|
Non-breaking space character getter. |
linkToThisText |
getlinkToThisText()
|
Link-to-this text. |