Class: TaoForm::Components::MonthPickerComponent
Instance Attribute Summary
#block_for_render, #list_options, #result_options
#attribute_name, #builder
Class Method Summary
collapse
Instance Method Summary
collapse
#initialize, #placeholder, #render, #render_result, #render_segment_list
#initialize
Class Method Details
.component_name ⇒ Object
17
18
19
|
# File 'lib/tao_form/components/month_picker_component.rb', line 17
def self.component_name
:month_picker
end
|
Instance Method Details
#default_segment ⇒ Object
13
14
15
|
# File 'lib/tao_form/components/month_picker_component.rb', line 13
def default_segment
@default_segment ||= :month
end
|
5
6
7
|
# File 'lib/tao_form/components/month_picker_component.rb', line 5
def input_type
@input_type ||= :month
end
|
#segments ⇒ Object
9
10
11
|
# File 'lib/tao_form/components/month_picker_component.rb', line 9
def segments
@segments ||= %w(year month)
end
|