Skip to content
João Cardoso edited this page Dec 5, 2019 · 5 revisions

Check is a checkbutton class which inherits from the TextedClickable class.

Preview

Methods

Name Description
SetValue (checked) Alias for :SetChecked.
GetValue Alias for :GetChecked.

Example

local check = LibStub('Sushi-3.1').Check()
check:SetLabel('Salmon')
check:SetSmall(true)
check:SetCall('OnClick', function(check, mouseButton, checked)
  if checked then
    print("You can have small salmon.")
  else
    print("You cannot have small salmon.")
  end
end)

Sushi-3.1 🍣

Documentation
Class Reference
Best Practices

Feedback
Post an issue

Clone this wiki locally