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
| Name | Type | Description |
|---|
| placeholder | string | Hint text displayed when the field is empty. |
| min_len | int | Minimum required character count. Shows an error if not met. Default: 0. |
| max_len | int | Maximum allowed character count. Shows an error if exceeded. Default: 16000. |
| rows | int | Number of visible text rows. Values greater than 1 render a resizable textarea. Default: 1. |
| regex | string | Regular expression pattern for input validation. Shows an error if the input doesn’t match. Default: ”.*” (any input). |