WoW:API Button IsEnabled: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
({{widgetmethod}})
m (Move page script moved page API Button IsEnabled to API Button IsEnabled without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{widgetmethod}}
{{widgetmethod}}
{{stub/api}}
Returns whether a button is enabled or not.
isEnabled = button:IsEnabled();


Note: This function returns 0 and 1 and not true and false (as of version 1.7.0).
== Returns ==
; isEnabled : Number - 1 if the button is enabled, 0 otherwise.
 
== Notes ==
* Disabled buttons cannot be clicked.

Latest revision as of 04:45, 15 August 2023

Widget API ← Button < IsEnabled

Returns whether a button is enabled or not.

isEnabled = button:IsEnabled();

Returns[edit]

isEnabled
Number - 1 if the button is enabled, 0 otherwise.

Notes[edit]

  • Disabled buttons cannot be clicked.