CharLimit||doc136521

September 20, 2022

Format

Editbox.CharLimit

Describe

The character limit of the input box. Characters exceeding the limit will be deleted. The default value is 10000.

Code Example

image.png

-- create layout window
local APIRootWindow = UI:CreateGUIWindow("API")

--Set the window to the root node of the UI
APIRootWindow.Parent = UI.Root

--According to the name to get the Editobox control for testing
local editbox = APIRootWindow.APIEditbox

--Set the limit on the number of characters in the text of the input box control
editbox.CharLimit = 8