AddTextBox

Syntax

Groupbox:AddTextBox({
    Index = "unique tool index",
    Placeholder = ">>PUT TEXT HERE<<"
})
  • <string> Index - does need to be unique.

  • <string> Placeholder - Placeholder text for when TextBox.Value == nil.

  • <string> Default - Default text value for TextBox.Value.

  • <string> MaxCharLimit - Optional integer.

  • <string> Prefix - Optional text that will always be shown before what is typed.

  • <string> Suffix - Optional text that will always be shown after what is typed.

TextBox Functions

TextBox:AddTooltip("Tooltip Text")
TextBox:SetValue("Sword")
TextBox:GetValue()

Example

Code shown below is missing some critical syntax for simplicity

--// Creating Groupbox
local Groupbox = Tab:AddLeftGroupbox("Demo Groupbox")

--// Making a tex box
local TextBox = Groupbox:AddTextBox({
    Index = "TextBox1";
    Placeholder = ">>PUT TEXT HERE<<";
}):AddTooltip("Tooltip")

local textValue = TextBox:GetValue()

Last updated