File

libs/upp-base/src/modules/localcfg.ts

Description

Service for managing configuration elements, providing methods for creating and interacting with Configuration instances.

Index

Methods

Methods

getConfiguration
getConfiguration(element: string)

Retrieves a Configuration instance for a specific element.

Parameters :
Name Type Optional Description
element string No
  • The name of the configuration element.
Returns : Configuration

A Configuration instance for managing the element.

getElement
getElement(element: string)

Retrieves a configuration element from localStorage.

Parameters :
Name Type Optional Description
element string No
  • The name of the configuration element.
Returns : literal type | null

An object containing the configuration data, or null if the element does not exist.

setElement
setElement(element: string, data: literal type)

Stores a complete configuration element in localStorage.

Parameters :
Name Type Optional Description
element string No
  • The name of the configuration element.
data literal type No
  • An object representing the element's configuration data.
Returns : void

results matching ""

    No results matching ""