src/app/services/context/context.service.ts
Context service.
Properties |
|
Methods |
|
Accessors |
constructor(uiService: UiService, persistenceService: PersistenceService)
|
||||||||||||
Constructs the entities service. ~constructor
Parameters :
|
Public contextEquals |
contextEquals(context1?: Context, context2?: Context)
|
Context comparer.
Returns :
boolean
|
Public getCaption | ||||||
getCaption(item: Context)
|
||||||
Get context caption
Parameters :
Returns :
any
|
Public getTitle | ||||||
getTitle(item: Context)
|
||||||
Get context tooltip title
Parameters :
Returns :
string
|
Public isEditing |
Default value : false
|
Whether context switcher is in editing mode. |
Public Readonly navStateChanged$ |
Default value : new EventEmitter<ContextConfiguration>()
|
Nav state changed event emitter. |
Public Readonly navStatePersistenceKey |
Type : string
|
Default value : 'navState'
|
Nav state "context state" persistence key. |
Public Readonly persistenceService |
Type : PersistenceService
|
The persistence service injected dependency.
|
Public Readonly uiService |
Type : UiService
|
The ui service injected dependency.
|
contexts | ||||||
getcontexts()
|
||||||
setcontexts(value: Context[])
|
||||||
Parameters :
Returns :
void
|
selectedContext | ||||||
getselectedContext()
|
||||||
Selected context getter. |
||||||
setselectedContext(value: Context | undefined)
|
||||||
Selected context setter.
Parameters :
Returns :
void
|
navState | ||||
getnavState()
|
||||
Nav state getter. |
||||
setnavState(value)
|
||||
Nav state setter.
Parameters :
Returns :
void
|
navStateConfigurations |
getnavStateConfigurations()
|
Nav state configurations
Returns :
ContextConfiguration[]
|