arena-py API v1.3.0
arena .attributes .textinput
Textinput attribute class to manage its properties in the ARENA: Opens an HTML prompt when clicked. Sends text input as an event on MQTT. Requires click-listener
attribute.
Usage: textinput=Textinput(...)
Parameters
- list[str] inputOptions: Array of options for select or radio input types Defaults to '[]' (optional)
- str inputType: Type of HTML form input Allows [text, email, password, number, tel, range, textarea, url, select, radio, checkbox, date, datetime-local, time, week, month] Defaults to 'text' (optional)
- str inputValue: Input field initial value. Select type will be selected value, for checkbox will be checked state Defaults to '' (optional)
- str label: Label for input (max 140 characters, optional). Defaults to '' (optional)
- str on: A case-sensitive string representing the event type to listen for. See <https: //developer.mozilla.org/en-US/docs/Web/Events> Web Events Allows [mousedown, mouseup, mouseenter, mouseleave, triggerdown, triggerup, gripdown, gripup, menudown, menuup, systemdown, systemup, trackpaddown, trackpadup] Defaults to 'mousedown' (optional)
- str placeholder: Text input placeholder (optional). Defaults to '' (optional)
- str title: The prompt title (optional). Defaults to '' (optional)
Textinput( title='Text Input', label='Input text below (max is 140 characters)', placeholder='Type here', on='mousedown', **kwargs)
Inherited Members
Alternate name for Textinput.
Usage: textinput=TextInput(...)