Skip to main content
Select(choices=[], placeholder="")

Example

from mirmod.controls import Select

@wob.receiver("value", "input", control=Select(placeholder="Choose an option", choices=["a", "b", "c"]))
def receive_input(self, i):
  self.selected = i
The Select control always returns a string. If you need a different type, convert the value in your receiver function or during execution.

Parameters

NameTypeDescription
choiceslistList of string options to display in the dropdown.
placeholderstringHint text displayed when no option is selected.