Class: TaoForm::Components::DatePickerComponent
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
19
20
21
|
# File 'lib/tao_form/components/date_picker_component.rb', line 19
def self.component_name
:date_picker
end
|
Instance Method Details
#default_segment ⇒ Object
15
16
17
|
# File 'lib/tao_form/components/date_picker_component.rb', line 15
def default_segment
@default_segment ||= :date
end
|
7
8
9
|
# File 'lib/tao_form/components/date_picker_component.rb', line 7
def input_type
@input_type ||= :date
end
|
#segments ⇒ Object
11
12
13
|
# File 'lib/tao_form/components/date_picker_component.rb', line 11
def segments
@segments ||= %w(year month date)
end
|