Inputs
you can use this to Take User Inputs
LUX.Input
-- Config.InputType = LUX
-- Type can be:
-- text: Normal Text
-- number: Number value
-- password: Text but the text will not be displayed
-- color: Color Value in RGB
-- month: Month Value
-- date: Date
-- datetime: Date and Time
-- range: Slider value between 1 and 100
-- time: Time
-- week: week
-- text as String
-- placeholder as String
local UserInput = LUX.Input(type, text, placeholder)
print(UserInput)
-- if type = select
local data = {
{label = 'test1', value = 'test1'},
}
local UserInput = LUX.Input(type, text, data)
print(UserInput)
-- Config.InputType = Native
-- text as String
local UserInput = LUX.Input(nil, text)
print(UserInput)
-- Config.InputType = OX
-- Type can be:
-- input: Normal Text
-- Number: Number value
-- slider: Slider value between 1 and 100
-- color: Color Value in RGB
-- date: Date
-- time: Time
-- textarea: Text Area Input
-- password: Text but the text will not be displayed
-- text will as String
-- Placeholder as String
local UserInput = LUX.Input(type, text, placeholder)
print(UserInput)
Last updated