Link Search Menu Expand Document

Text Input

Opens an HTML prompt when clicked. Sends text input as an event on MQTT. Requires click-listener.

Text Input Attributes

Attribute Type Default Description Required
on string; One of: ['mousedown', 'mouseup', 'mouseenter', 'mouseleave', 'triggerdown', 'triggerup', 'gripdown', 'gripup', 'menudown', 'menuup', 'systemdown', 'systemup', 'trackpaddown', 'trackpadup'] 'mousedown' A case-sensitive string representing the event type to listen for, e.g. ‘mousedown’, ‘mouseup’. See Web Events Yes
title string 'Text Input' The prompt title. Yes
label string 'Input text below (max is 140 characters).' Text prompt label Yes
placeholder string 'Type here' Text input place holder. Yes