core/common/options.service.ts
A service that allows to set or get application options which configure the default behavior of the UI.
Methods |
|
constructor(options, systemOptionsService: SystemOptionsService, tenantOptionService: TenantOptionsService)
|
||||||||||||
Parameters :
|
get | ||||||||||||
get(optionKey, defaultValue?: any)
|
||||||||||||
Returns an application option used to configure the UI.
Parameters :
Returns :
any
|
Async getSystemOption | ||||||||||||||||
getSystemOption(category: string, key: string, defaultValue?: any)
|
||||||||||||||||
Gets a value from the system service and parses it.
Parameters :
Returns :
{}
|
Async getTenantOption | ||||||||||||||||
getTenantOption(category: string, key: string, defaultValue?: any)
|
||||||||||||||||
Gets a value from the tenant service and parses it.
Parameters :
Returns :
{}
|
set | ||||||||||||
set(key: string, value: any)
|
||||||||||||
Sets an application option.
Parameters :
Returns :
void
|