Hello,
I have something like this:
Lua Code:
...
local options = {
type = 'group',
args = {
message = {
name = Barker.L['LABEL_MESSAGE'],
desc = Barker.L['DESC_MESSAGE'],
type = 'input',
order = 2,
get = function() Options:GetMessage() end,
set = function(...) Options:SetMessage(...) end
}
}
}
function Options:OnEnable()
Config:RegisterOptionsTable(PANEL_NAME, options)
CR:RegisterOptionsTable(AddOnName, options)
CD:AddToBlizOptions(PANEL_NAME, Barker.L['LONG_TAG'])
end
How do I disable the 'okay' button for the message input?
I've tried setting disableButton to true in the options table and accessing the widget via ...message.widget: DisableButton(true). The first complains about an unknown arg and the second says widget is nil.