add ox checkbox option for input

This commit is contained in:
Jim Shield
2025-04-12 00:18:48 +01:00
committed by GitHub
parent 747fd272d4
commit 943436467e

View File

@@ -88,6 +88,19 @@ function createInput(title, opts)
}
end
if opts[i].type == "checkbox" then
jsonPrint(opts[i])
for k in pairs(opts[i].options) do
if options[currentNum] then currentNum += 1 end
options[currentNum] = {
type = opts[i].type,
label = opts[i].options[k].text..(opts[i].txt and " - "..opts[i].txt or ""),
name = opts[i].options[k].value,
}
end
end
if opts[i].type == "color" then
options[currentNum] = {
type = opts[i].type,