Class: Sirens::Button

Inherits:
PrimitiveComponent show all
Defined in:
lib/components/widgets/button.rb

Instance Method Summary collapse

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

#clickObject

Actions



12
13
14
# File 'lib/components/widgets/button.rb', line 12

def click()
    view.click
end

#create_viewObject

Returns a ButtonView.



6
7
8
# File 'lib/components/widgets/button.rb', line 6

def create_view()
    ButtonView.new
end