Class: Shoelace::Rails::Ui::FormHelper::ShoelaceCollectionSelect
- Inherits:
-
ActionView::Helpers::Tags::CollectionSelect
- Object
- ActionView::Helpers::Tags::CollectionSelect
- Shoelace::Rails::Ui::FormHelper::ShoelaceCollectionSelect
- Defined in:
- app/helpers/shoelace/rails/ui/form_helper.rb
Overview
:nodoc:
Instance Method Summary collapse
- #options_from_collection_for_select(collection, value_method, text_method, selected = nil) ⇒ Object
- #select_content_tag(option_tags, _options, html_options) ⇒ Object
Instance Method Details
#options_from_collection_for_select(collection, value_method, text_method, selected = nil) ⇒ Object
116 117 118 |
# File 'app/helpers/shoelace/rails/ui/form_helper.rb', line 116 def (collection, value_method, text_method, selected = nil) @template_object.(collection, value_method, text_method, selected) end |
#select_content_tag(option_tags, _options, html_options) ⇒ Object
120 121 122 123 124 125 126 |
# File 'app/helpers/shoelace/rails/ui/form_helper.rb', line 120 def select_content_tag(, , ) = .stringify_keys ['value']= value add_default_name_and_id() @template_object.content_tag("sl-select", , ) end |