Class: Phlexi::Form::Components::Select
- Defined in:
- lib/phlexi/form/components/select.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods included from Concerns::ExtractsInput
Methods inherited from Base
Constructor Details
This class inherits a constructor from Phlexi::Form::Components::Base
Instance Method Details
#view_template ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/phlexi/form/components/select.rb', line 11 def view_template input(type: :hidden, name: attributes[:name], value: "", autocomplete: "off", hidden: true) if include_hidden? select(**attributes) do blank_option { blank_option_text } if include_blank? end end |