localValue

Stores and retrieves local values, like settings or something, that you want to have persistent on this specific browser. The value will be saved only for the browser you are currently working on. The value will be save in the scope of the current workspace you are working in.

Parameters

  1. key - Key name

  2. value - (optional) value you want to save. If this is empty, brixxbox will return the value, you saved before.

This is not an asynchronous operation. No await needed!

Example Usages

   brixxApi.localValue("myKey", "Hello World"); //Save the value "Hello World" under the key "myKey"
   let x = brixxApi.localValue("myKey"); //Retrieve the Key "myKey". This will result in "Hello World"
   
   console.log(x)

Last updated