Skip to main content

Settings

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

Methods

MethodReturnsParametersDescription
Host.Settings.getAttributes()objectnoneGet 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");