Documentation / Widgets / Basic / Textarea

Textarea

Editable text. Pair it with a Keyboard widget whose Target is this textarea.

Group: Basic · Default size: 200 × 60 · Style parts: Main, Selected, Cursor, Placeholder

A dropped Textarea: an empty white box with a thin border and a text cursor.
A Textarea as it is dropped.
The Textarea settings section with Placeholder Password and both One line mode and Password mode ticked.
Its settings, set as the example below sets them.
SettingDefaultWhat it does
Text(empty)Initial contents.
Placeholder(empty)Shown greyed when empty.
One line modeoffNo wrapping; Enter does not insert a newline.
Password modeoffShows bullets.
Accepted characters(any)A whitelist, e.g. 0123456789..
Max text length00 is unlimited.

Example: a one-line password box

  1. Drag a Textarea onto the screen and set its Name to Password. Under Geometry give it X 40, Y 100, Width 240 and Height 44.
  2. Under Textarea settings set Placeholder to Password and tick One line mode and Password mode.
  3. Drag a Label above it saying Wi-Fi password.
  4. On the board something has to type into it: a Keyboard whose Target text area is this one.
A text box showing the grey placeholder Password, with the caption Wi-Fi password above it.
Grey placeholder text until something is typed.