Class: TaoForm::Components::Select::ListComponent
- Inherits:
-
TaoOnRails::Components::Base
- Object
- TaoOnRails::Components::Base
- TaoForm::Components::Select::ListComponent
- Defined in:
- lib/tao_form/components/select/list_component.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(view, options = {}) ⇒ ListComponent
constructor
A new instance of ListComponent.
Constructor Details
#initialize(view, options = {}) ⇒ ListComponent
Returns a new instance of ListComponent.
6 7 8 9 10 11 12 13 14 |
# File 'lib/tao_form/components/select/list_component.rb', line 6 def initialize view, = {} super view, if [:class].present? [:class] += " select-list" else [:class] = "select-list" end end |
Class Method Details
.component_name ⇒ Object
16 17 18 |
# File 'lib/tao_form/components/select/list_component.rb', line 16 def self.component_name :select_list end |