Files
Basalt/docs/objects/Input/setDefaultText.md
Robert Jelic 4d614372a1 Updated docs
There is still stuff to do
2022-08-28 18:18:26 +02:00

544 B

setDefaultText

Sets the default text. This will only be displayed if there is no input set by the user.

Parameters:

  1. string input type ("text", "password", "number")
  2. number|color default background color - optional
  3. number|color default text color - optional

Returns:

  1. object The object in use

Usage:

  • Creates a default input and sets the default text to "...".
local mainFrame = basalt.createFrame()
local aInput = mainFrame:addInput():setDefaultText("...")
<input default="..." />