Parameter Widgets
Complete reference for parameter widget types and configuration options in valohai.yaml.
Parameter widgets control the user interface rendering and editing behavior of parameters in valohai.yaml definitions.
Widget Specification
The widget field accepts two formats:
String format:
widget: <widget-type>Object format:
widget:
type: <widget-type>
settings:
<widget-specific-settings>When the widget field is omitted, the default widget is used.
Available Widget Types
default
A resizable text area that auto-expands based on content.
Type identifier: default (implicit when widget field is omitted)
Settings: None
Behavior:
Renders as single-row text area by default
Expands vertically as content is entered
Accepts string input
Example:
combobox
A searchable dropdown that combines predefined options with free-text input capability.
Type identifier: combobox
Settings:
options(array of strings, optional): Predefined values displayed in dropdown
Behavior:
Displays dropdown of predefined options when
settings.optionsis providedAllows typing to filter displayed options
Accepts custom values not in the options list
Automatically adds current value to options list if not already present
Falls back to default widget when
settings.optionsis empty or undefined
Example:
Example (shorthand without settings):
sql
A code editor with SQL syntax highlighting.
Type identifier: sql
Settings: None
Behavior:
Renders as multi-line code editor
Applies SQL syntax highlighting via PrismJS
Uses monospace font
Accepts string input
Example:
dockerfile
A code editor with Dockerfile syntax highlighting.
Type identifier: dockerfile
Settings: None
Behavior:
Renders as multi-line code editor
Applies Dockerfile syntax highlighting via PrismJS
Uses monospace font
Accepts string input
Example:
datumalias
A searchable dropdown populated with datum aliases from the current project.
Type identifier: datumalias
Settings: None
Behavior:
Fetches datum aliases from project context
Displays only non-deleted aliases
Renders searchable dropdown
Allows custom value entry
Provides clearable selection
Shows loading state during fetch
Requires valid
projectIdin execution context
Example:
Parameter Definition Fields
Parameter definitions support the following fields:
name
string
Yes
Parameter identifier used in command substitution
type
string
No
Data type: string, integer, float, flag. Defaults to string
default
varies
No
Default value matching the parameter type
optional
boolean
No
Whether parameter can be omitted. Defaults to false
description
string
No
Help text displayed in user interface
widget
string or object
No
Widget configuration as described above
Example with all fields:
Widget Selection
Widget selection follows this precedence:
If
widgetfield is specified, that widget type is usedIf
widgetfield is omitted, the default widget is used
There is no automatic widget selection based on parameter type or other fields.
Complete Examples
String parameter with default widget
Integer parameter with combobox
SQL query parameter
Dockerfile parameter with multi-line default
Datum alias parameter
Last updated
Was this helpful?
