Class: Shoelace::Rails::Ui::FormHelper::ShoelaceSelect

Inherits:
ActionView::Helpers::Tags::Select
  • Object
show all
Defined in:
app/helpers/shoelace/rails/ui/form_helper.rb

Overview

:nodoc:

Instance Method Summary collapse

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 grouped_options_for_select(grouped_options, options)
  @template_object.grouped_sl_options_for_select(grouped_options, options)
end

#options_for_select(container, options = nil) ⇒ Object



102
103
104
# File 'app/helpers/shoelace/rails/ui/form_helper.rb', line 102

def options_for_select(container, options = nil)
  @template_object.sl_options_for_select(container, options)
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 (option_tags, _options, html_options)
  html_options = html_options.stringify_keys
  html_options['value']= value
  add_default_name_and_id(html_options)

  @template_object.("sl-select", option_tags, html_options)
end