Skip to content

Add support for changing settings #763

@MeMyselfI

Description

@MeMyselfI

I added this to the set method in the loop in order to change settings like format and labels. As "clear" is also defined you have to add "settings." to the item, so set('settings.format','yyyy/mm/dd') for example:

if (thingItem.indexOf ('settings.') != -1)
SETTINGS[thingItem.substring ('settings.'.length)] = thingValue;

Adding this at the end of the get method enables you to read settings to (like get('format')):

return SETTINGS[thing];

That's quick and dirty so please do your own implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions