We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
copy下面代码,运行试试
switch = Switch() switch:width(100):height(80):marginLeft(100):marginTop(100) switch:setSwitchChangedCallback(function(isOn) print("switch changed -----", isOn) print("switch ----- ", switch:on()) end) window:addView(switch)