Widget API: Button:IsEnabled

From AddOn Studio
Jump to navigation Jump to search

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.