Link Search Menu Expand Document

arena-py API v0.9.6

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. Usage: textinput=Textinput(...)

Parameters
  • str label: Text prompt label Defaults to 'Input text below (max is 140 characters).' (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 place holder. Defaults to 'Type here' (optional)
  • str title: The prompt title. Defaults to 'Text Input' (optional)
Textinput( title='Text Input', label='Input text below (max is 140 characters)', placeholder='Type here', on='mousedown', **kwargs)
class TextInput(Textinput):

Alternate name for Textinput. Usage: textinput=TextInput(...)