Class: Sirens::Button
- Inherits:
-
PrimitiveComponent
- Object
- AbstractComponent
- PrimitiveComponent
- Sirens::Button
- Defined in:
- lib/components/widgets/button.rb
Instance Method Summary collapse
-
#click ⇒ Object
Actions.
-
#create_view ⇒ Object
Returns a ButtonView.
Methods inherited from PrimitiveComponent
#apply_props, #initialize, #on_component_added, #on_model_changed, #on_value_changed, #populate_popup_menu, #set_props, #subscribe_to_model_events, #sync_ui_from_model
Methods inherited from AbstractComponent
#add_all_components, #add_component, #child_components, #default_model, #initialize, #model, #on_component_added, #on_model_changed, open, #props, #remove_component_at, #remove_last_component, #set_model, #set_props, #view
Constructor Details
This class inherits a constructor from Sirens::PrimitiveComponent
Instance Method Details
#click ⇒ Object
Actions
12 13 14 |
# File 'lib/components/widgets/button.rb', line 12 def click() view.click end |
#create_view ⇒ Object
Returns a ButtonView.
6 7 8 |
# File 'lib/components/widgets/button.rb', line 6 def create_view() ButtonView.new end |