mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-12-01 06:44:48 +00:00
add ox checkbox option for input
This commit is contained in:
1 parent
747fd272d4
commit
943436467e
1 file changed
+13
@@ -88,6 +88,19 @@ function createInput(title, opts)
|
|||||||
}
|
}
|
||||||
end
|
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
|
if opts[i].type == "color" then
|
||||||
options[currentNum] = {
|
options[currentNum] = {
|
||||||
type = opts[i].type,
|
type = opts[i].type,
|
||||||
|
|||||||
Reference in new issue
Block a user