@springtree/eva-sdk-core-settings
TypeScript icon, indicating that this package has built-in type declarations

3.0.6 • Public • Published

@springtree/eva-sdk-core-settings

Centralised settings manager for all EVA sdk modules. Module can register their own settings group. Updating a setting will return a change event that can be picked up and peristend by add-on libraries voor local storage or mobile platform properties

Usage

import { settings } from '@springtree/eva-sdk-core-settings';

const coreSettings = settinges.getCoreSettings();
const defaultlanguage = settings.get('core', 'language');

settings.set('core', 'appName', 'my EVA app');
settings.set('core', 'appVersion', '0.1.0');

// Register your own setting group
// If an existing group exists an error will be thrown
//
const groupName = 'example';
const testValues = {
  example: 'setting',
};

settings.register(groupName, testValues);
const exampleSettings = settings.getGroup(groupName);

Readme

Keywords

none

Package Sidebar

Install

npm i @springtree/eva-sdk-core-settings

Weekly Downloads

685

Version

3.0.6

License

ISC

Unpacked Size

15.4 kB

Total Files

11

Last publish

Collaborators

  • mdoeswijk
  • janvandenberg
  • adebree
  • appie
  • springtree_solutions