Module: StimulusPlumbers::Form::Fields::Inputs::Select
- Includes:
- Combobox
- Included in:
- Builder
- Defined in:
- lib/stimulus_plumbers/form/fields/inputs/select.rb,
lib/stimulus_plumbers/form/fields/inputs/select/grouped.rb,
lib/stimulus_plumbers/form/fields/inputs/select/weekday.rb,
lib/stimulus_plumbers/form/fields/inputs/select/timezone.rb
Defined Under Namespace
Modules: Grouped, Timezone, Weekday
Instance Method Summary
collapse
Instance Method Details
#collection_select(attribute, collection, value_method, text_method, options = {}, html_options = {}) ⇒ Object
17
18
19
20
|
# File 'lib/stimulus_plumbers/form/fields/inputs/select.rb', line 17
def collection_select(attribute, collection, value_method, text_method, options = {}, html_options = {})
merged = merge_html_options(theme.resolve(:form_field_input_select), html_options)
super(attribute, collection, value_method, text_method, options, merged)
end
|
#select(attribute, choices = nil, options = {}, html_options = {}) ⇒ Object
12
13
14
15
|
# File 'lib/stimulus_plumbers/form/fields/inputs/select.rb', line 12
def select(attribute, choices = nil, options = {}, html_options = {})
merged = merge_html_options(theme.resolve(:form_field_input_select), html_options)
super(attribute, choices, options, merged)
end
|