Hi all,
I am to learn AceConfig and got a question regarding greying options out when disabled.
So, I currently have the following:
Lua Code:
local enable = true
local size = 15
local options = {
type = "group",
childGroups = "tab",
name = "Test " .. A.version,
arg = "Test",
args = {
enable = {
order = 1,
type = "toggle",
name = "Enable",
get = function()
return enable;
end,
set = function(_, value)
enable = value;
end,
disabled = function()
end,
},
size = {
order = 2,
type = "range",
name = "Size",
min = 5,
max = 30,
step = 1,
get = function()
return size;
end,
set = function(_, value)
size = value;
end,
},
},
}
It seems like I could grey out the size option with enable's disabled function, but I ain't not too sure
Could I please get a help?
Thank you in advance!