Button Handler ButtonStates - ESOUI
Thread Tools Display Modes
Prev Previous Post   Next Post Next
03/07/19, 09:15 AM   #1
AddOn Author - Click to view addons
Join Date: Jan 2019
Posts: 12
Button Handler ButtonStates

I want to remove the setted Handler within the "OnClicked" event. How can I do this. I dont know witch parameters the "function(.....) " (the 2. parameter of "button:SetHandler()" can use and how to access the button itself. "self" does not work here.

My Example function --- which will set the button handler:

function addon.InitControls(rowNumber)

 deleteButton:SetHandler("OnClicked", function(self) <-- are there other parameter available?

    self:RemoveHandler ("OnClicked") <-- how to remove the handler?

2. How to Change the Button State in Code. I know hot to hide a control
But I also want to disable a control/button.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Button Handler ButtonStates

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