Class: Shoelace::Rails::Ui::FormHelper::ShoelaceSelect
- Inherits:
-
ActionView::Helpers::Tags::Select
- Object
- ActionView::Helpers::Tags::Select
- Shoelace::Rails::Ui::FormHelper::ShoelaceSelect
- Defined in:
- app/helpers/shoelace/rails/ui/form_helper.rb
Overview
:nodoc:
Instance Method Summary collapse
- #grouped_options_for_select(grouped_options, options) ⇒ Object
- #options_for_select(container, options = nil) ⇒ Object
- #select_content_tag(option_tags, _options, html_options) ⇒ Object
Instance Method Details
#grouped_options_for_select(grouped_options, options) ⇒ Object
98 99 100 |
# File 'app/helpers/shoelace/rails/ui/form_helper.rb', line 98 def (, ) @template_object.(, ) end |
#options_for_select(container, options = nil) ⇒ Object
102 103 104 |
# File 'app/helpers/shoelace/rails/ui/form_helper.rb', line 102 def (container, = nil) @template_object.(container, ) end |
#select_content_tag(option_tags, _options, html_options) ⇒ Object
106 107 108 109 110 111 112 |
# File 'app/helpers/shoelace/rails/ui/form_helper.rb', line 106 def select_content_tag(, , ) = .stringify_keys ['value']= value add_default_name_and_id() @template_object.content_tag("sl-select", , ) end |