Class: TaoForm::Components::Select::ListComponent

Inherits:
TaoOnRails::Components::Base
  • Object
show all
Defined in:
lib/tao_form/components/select/list_component.rb

Class Method Summary collapse

Instance Method Summary collapse

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, options = {}
  super view, options

  if html_options[:class].present?
    html_options[:class] += " select-list"
  else
    html_options[:class] = "select-list"
  end
end

Class Method Details

.component_nameObject



16
17
18
# File 'lib/tao_form/components/select/list_component.rb', line 16

def self.component_name
  :select_list
end