SingleSelectInput
Single-select input for choosing one value from a set of options.
Options can be defined as a static list or a query that returns values.
The selected value is accessed using the .value accessor in filters.
Example YAML: inputs: - name: region type: single-select options: ['East', 'West', 'North', 'South'] display: type: dropdown default: value: 'East'
insights:
- name: sales_by_region
interactions:
- filter: ?{ region = ${ref(region).value} }
Attributes
| Field | Type | Default | Description |
|---|---|---|---|
| path | string | None | A unique path to this object |
| name | string | None | The unique name of the object across the entire project. |
| file_path | string | None | The path to the file that contains the object definition. |
| type | string | single-select | Input type identifier. |
| label | string | None | Label shown to the user |
| options | Any of: array, string | None | Available options. Can be a static list or a query string. Query must reference exactly one SqlModel using ${ref(model_name)}. |
| display | SingleSelectDisplay | None | Display configuration including UI component type and default value. If not specified, defaults to dropdown with first option selected. |