Example
The Select control always returns a string. If you need a different type, convert the value in your receiver function or during execution.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
A dropdown control for selecting from a list of options.
Select(choices=[], placeholder="")
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
| Name | Type | Description |
|---|---|---|
| choices | list | List of string options to display in the dropdown. |
| placeholder | string | Hint text displayed when no option is selected. |