Skip to main content
Textbox(placeholder="", min_len=0, max_len=16000, rows=1, regex=".*")

Example

from mirmod.controls import Textbox

@wob.receiver("value", "input", control=Textbox(placeholder="a,b,c,..."))
def receive_input(self, i):
  self.values = i.split(',')
The Textbox always returns a string. If you need numbers or JSON, parse the value in your receiver function or during execution.

Parameters

NameTypeDescription
placeholderstringHint text displayed when the field is empty.
min_lenintMinimum required character count. Shows an error if not met. Default: 0.
max_lenintMaximum allowed character count. Shows an error if exceeded. Default: 16000.
rowsintNumber of visible text rows. Values greater than 1 render a resizable textarea. Default: 1.
regexstringRegular expression pattern for input validation. Shows an error if the input doesn’t match. Default: ”.*” (any input).