Method: SWS::ImageButton#update_binding
- Defined in:
- lib/sws/Core/components/ImageButton/ImageButton.rb
#update_binding(key, value) ⇒ Object
Overriden method from Component class - sets the action to perform if the “value” parameter is not empty
21 22 23 24 25 26 27 28 |
# File 'lib/sws/Core/components/ImageButton/ImageButton.rb', line 21 def update_binding ( key, value ) #TODO: make these params accessible by user if ( key == "x" || key == "y" ) @action = @slots["action"].bound_object() end end |