Weave.InputBox
Displays a UI text input field for user interaction.
Syntax
Weave.InputBox(title, defaultText, maxLength, callback, placeholder)Parameters
titlestringInput title
defaultTextstringDefault text
maxLengthnumberMaximum length
callbackfunctionFunction that receives the result
placeholderstringPlaceholder text
Example
-- Create an input box
Weave.InputBox(
"Enter your name",
"",
50,
function(result)
if result then
print("You entered: " .. result)
else
print("Input cancelled")
end
end,
"Your name here..."
)