544 B
544 B
setDefaultText
Sets the default text. This will only be displayed if there is no input set by the user.
Parameters:
stringinput type ("text", "password", "number")number|colordefault background color - optionalnumber|colordefault text color - optional
Returns:
objectThe 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="..." />