libs/upp-base/src/modules/localcfg.ts
Represents a single configuration element, allowing for data manipulation and persistence.
Properties |
|
Methods |
Accessors |
constructor(element: string, config: _ConfigStorage)
|
||||||||||||
|
Initializes the
Parameters :
|
| Public OnUpdated |
Default value : this._onUpdated.asObservable()
|
|
An observable that emits whenever the configuration is updated. Consumers can subscribe to react to updates. |
| commit |
commit()
|
|
Saves all current configuration data to storage.
Returns :
void
|
| get | ||||||||
get(item: string)
|
||||||||
|
Retrieves the value of a specific configuration key.
Parameters :
Returns :
ConfigValue
The value associated with the key, or |
| set | ||||||||||||
set(item: string, value: ConfigValue)
|
||||||||||||
|
Sets the value of a specific configuration key.
If the value is
Parameters :
Returns :
void
|
| autoCommit | ||||||||
getautoCommit()
|
||||||||
|
Gets the
Returns :
boolean
|
||||||||
setautoCommit(value: boolean)
|
||||||||
|
Sets the
Parameters :
Returns :
void
|