Thread Tools Display Modes
Prev Previous Post   Next Post Next
09-28-20, 08:11 AM   #1
Lindrin
A Defias Bandit
 
Lindrin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2011
Posts: 3
Ace3 Options Input Disable Button

Hello,

I have something like this:

Lua Code:
  1. ...
  2. local options = {
  3.     type = 'group',
  4.     args = {
  5.         message = {
  6.             name = Barker.L['LABEL_MESSAGE'],
  7.             desc = Barker.L['DESC_MESSAGE'],
  8.             type = 'input',
  9.             order = 2,
  10.             get = function() Options:GetMessage() end,
  11.             set = function(...) Options:SetMessage(...) end
  12.         }
  13.     }
  14. }
  15.  
  16. function Options:OnEnable()
  17.     Config:RegisterOptionsTable(PANEL_NAME, options)
  18.     CR:RegisterOptionsTable(AddOnName, options)
  19.     CD:AddToBlizOptions(PANEL_NAME, Barker.L['LONG_TAG'])
  20. 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.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Ace3 Options Input Disable Button

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off