Builder appState options
The appState variable can be used within custom plugins to interact with key Builder features or to gather important contextual data.
Import appState
Import appState in the following way:
The appState variable represents the application's current state. It is intended for use within the Visual Editor.
The appState variable has several key-value pairs and methods. The most commonly used are detailed below.
appState.user
The appState.user key provides valuable data and tools for the current user.
appState.designerState
The appState.designerState key provides key-value pairs and methods related to the Visual Editor.
appState.models
The appState.models key contains key-value pairs and methods for all models within the organization.
Note: Both .update() and .remove() are destructive methods. Be extremely careful with changes, as data cannot be recovered.
appState.dialogs
The appState.dialogs key contains methods for using Builder-style prompts, alerts, and confirmations.
appState.globalState
The appState.dialogs key contains methods for using Builder-style prompts, alerts, and confirmations.