Class: Maquina::Application::Components::SelectComponent
- Inherits:
-
ComponentBase
- Object
- Phlex::HTML
- ComponentBase
- Maquina::Application::Components::SelectComponent
- Defined in:
- app/views/maquina/application/components/select_component.rb
Instance Method Summary collapse
Methods inherited from ComponentBase
Methods included from Maquina::ApplicationView
#attribute_human_name, #button_to, #image_tag, #link_to, #model_human_name, #svg_icon
Constructor Details
This class inherits a constructor from Maquina::Application::Components::ComponentBase
Instance Method Details
#view_template ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'app/views/maquina/application/components/select_component.rb', line 9 def view_template = input_html(no_helpers: true).deep_dup div(**control_html) do @form.label attribute_name, class: "label #{label_css_class}" div(class: "mt-1") do @form.select attribute_name, to_values!(), (), help_template error_template end end end |