Method: MiniGL::ToggleButton#click

Defined in:
lib/minigl/forms.rb

#clickObject

Executes the button click action, and toggles its state. The action block always receives as a first parameter true, if the button has been changed to checked, or false, otherwise.



330
331
332
333
# File 'lib/minigl/forms.rb', line 330

def click
  @checked = !@checked
  @action.call @checked, @params
end