Inputs
Textarea

dialog refers to the return value of Dialog:Create

Input

dialog:AddTextarea creates a new text input field, but in a larger field, which can be extended.

Parameters

dialog:AddTextarea(label, description?, placeholder?, values?, defaultValue?, min?, max?, required?)
NameTypeDescriptionRequired
labelstringThe title of the inputYes
descriptionstringThe description of the input fieldNo
placeholderstringThe placeholder of the input fieldNo
defaultValuestringThe default value of the input fieldNo
minLengthnumberThe maximal length of the textNo
maxLengthnumberThe minimal length of the textNo
requiredbooleanIf the value of the field should be valid and requiredNo

Example

client/example.lua
local dialog = Dialog:Create('Title');
 
dialog:AddTextarea('Text', 'Super cool and large Text!', 'Enter a super cool Text!');
 
local results = dialog:Open();
 
print(results[1]) -- The entered text