Class: Shoes::Button
Instance Method Summary collapse
-
#click(&blk) ⇒ Object
When a button is clicked, its click block is called.
-
#focus ⇒ Object
Moves focus to the button.
Methods inherited from Native
#displace, #height, #hide, #left, #move, #parent, #remove, #show, #style, #toggle, #top, #width
Instance Method Details
#click(&blk) ⇒ Object
When a button is clicked, its click block is called. The block is handed self. Meaning: the button which was clicked.
86 87 88 89 |
# File 'lib/blue_shoes/native.rb', line 86 def click(&blk) # returns self throw NotImplementedError end |
#focus ⇒ Object
Moves focus to the button. The button will be highlighted and, if the user hits Enter, the button will be clicked.
92 93 94 95 |
# File 'lib/blue_shoes/native.rb', line 92 def focus # returns self throw NotImplementedError end |