Configuration Variable Selector Widget
The widget’s configuration schema is defined in src/index.ts. Options and defaults:
Allowed values:
Key:
valuesType:
string[](required)Purpose: The discrete values to present in the dropdown (e.g., station IDs, precomputed labels, or resource paths).
Example:
["octopus/station/0", "octopus/station/1", "octopus/station/2"]
Variables filter (optional):
Key:
allowedVarsType:
string[]Purpose: If the selector is bound to a set of Octopus variables, limit the list to these variables; leave empty to show all available variables.
Example:
["octopus/station/*/station_state"]
Defaults are set in src/index.ts under defaultCfg.
Quick recipe
{
"values": ["octopus/station/0", "octopus/station/1", "octopus/station/2"],
"allowedVars": []
}