Checkbox

This Component refers to the return value of menu:AddCheckbox.

checkbox:SetChecked

Sets the checked state of the checkbox.

checkbox:SetChecked(checked)
  • checked: boolean

checkbox:SetIconStyle

Sets the icon style of the checkbox.

checkbox:SetIconStyle(iconStyle)
  • iconStyle: 'tick' | 'cross'

checkbox:OnCheck

Adds a callback that gets executed when the checkbox is changed.

checkbox:OnCheck(callback)
  • callback: function(checked: boolean)