WoW:API Button IsEnabled: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
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.

Revision as of 15:16, 15 February 2010

Widget API ← Button < IsEnabled

Returns whether a button is enabled or not.

isEnabled = button:IsEnabled();

Returns

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

Notes

  • Disabled buttons cannot be clicked.