Class: SdrViewComponents::TabForm::TabbedFormBuilder
- Inherits:
-
ActionView::Helpers::FormBuilder
- Object
- ActionView::Helpers::FormBuilder
- SdrViewComponents::TabForm::TabbedFormBuilder
- Defined in:
- app/components/sdr_view_components/tab_form/tabbed_form_builder.rb
Overview
A FormBuilder for use with SdrViewComponents::TabForm::TabListComponent-based forms.
TabListComponent doesn't render a
Constant Summary collapse
- FIELD_METHODS =
%i[text_field email_field textarea text_area hidden_field file_field radio_button checkbox date_field].freeze
Instance Method Summary collapse
Instance Method Details
#id ⇒ Object
36 37 38 |
# File 'app/components/sdr_view_components/tab_form/tabbed_form_builder.rb', line 36 def id super || [:parent_builder]&.id end |
#select(method, choices = nil, options = {}, html_options = {}) ⇒ Object
31 32 33 34 |
# File 'app/components/sdr_view_components/tab_form/tabbed_form_builder.rb', line 31 def select(method, choices = nil, = {}, = {}, &) [:form] ||= id super end |