Skip to main content
The Stac SetValue widget allows you to set multiple key-value pairs in the application’s state and optionally render a child widget. It’s useful for managing application state through JSON configuration.

Properties

Each item in values should contain:
  • key: The state key to set
  • value: The value to assign

Example

Initializing State on Screen Load

Use StacSetValue to initialize state when a screen loads:

Reading State Values

After setting values with StacSetValue, you can read them using placeholder syntax {{key}}:
For action-based state updates (e.g., on button press), see StacSetValueAction.