Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 714 Bytes

File metadata and controls

24 lines (17 loc) · 714 Bytes
sidebar_position 11

Settings

Host.Settings provides a script-local key-value store for persisting state between prepareEdit and performEdit phases.

Methods

Method Returns Parameters Description
Host.Settings.getAttributes() object none Get the settings attributes object

The returned object has the same surface as Host.Attributes.

Persistence

Values persist between prepareEdit() and performEdit() within the same script session. They do not persist across application restarts.

var attrs = Host.Settings.getAttributes();
attrs.setAttribute("myKey", "myValue");
var val = attrs.getAttribute("myKey");