Select(choices=[], placeholder="")

Example

from mirmod.controls import Textbox

@wob.receiver("value", "input", control=Select(placeholder="a", choices=["a", "b", "c"]))
def receive_input(self, i):
  self.values = i

Parameters

NameTypeDescription
placeholderstringShows a greyed out text that will disappear when new text is entered
choicesListA python list of str items.

note

The Select control will always return a string as value. So if numbers or JSON is expected it must be transformed at the receiver or during execution.