Class: Shoelace::Components::SlSelect
- Inherits:
-
ActionView::Helpers::Tags::Select
- Object
- ActionView::Helpers::Tags::Select
- Shoelace::Components::SlSelect
- Includes:
- ErrorWrappable, SlSelectRenderable
- Defined in:
- app/helpers/shoelace/components/sl_select.rb
Overview
:nodoc:
Constant Summary
Constants included from SlSelectRenderable
Shoelace::Components::SlSelectRenderable::EMPTY
Instance Attribute Summary collapse
-
#slot ⇒ Object
readonly
Returns the value of attribute slot.
Instance Method Summary collapse
- #grouped_options_for_select(grouped_options, options) ⇒ Object
-
#initialize(object_name, method_name, template_object, choices, options, html_options, slot) ⇒ SlSelect
constructor
A new instance of SlSelect.
- #options_for_select(container, options = nil) ⇒ Object
Methods included from SlSelectRenderable
Methods included from ErrorWrappable
Constructor Details
#initialize(object_name, method_name, template_object, choices, options, html_options, slot) ⇒ SlSelect
Returns a new instance of SlSelect.
31 32 33 34 |
# File 'app/helpers/shoelace/components/sl_select.rb', line 31 def initialize(object_name, method_name, template_object, choices, , , slot) @slot = slot super(object_name, method_name, template_object, choices, , ) end |
Instance Attribute Details
#slot ⇒ Object (readonly)
Returns the value of attribute slot.
29 30 31 |
# File 'app/helpers/shoelace/components/sl_select.rb', line 29 def slot @slot end |
Instance Method Details
#grouped_options_for_select(grouped_options, options) ⇒ Object
36 37 38 |
# File 'app/helpers/shoelace/components/sl_select.rb', line 36 def (, ) @template_object.(, ) end |
#options_for_select(container, options = nil) ⇒ Object
40 41 42 |
# File 'app/helpers/shoelace/components/sl_select.rb', line 40 def (container, = nil) @template_object.(container, ) end |