Class: StimulusPlumbers::Components::DatePicker::Navigator
- Inherits:
-
Plumber::Base
- Object
- Plumber::Base
- StimulusPlumbers::Components::DatePicker::Navigator
- Defined in:
- lib/stimulus_plumbers/components/date_picker/navigator.rb
Instance Attribute Summary
Attributes inherited from Plumber::Base
Instance Method Summary collapse
Methods inherited from Plumber::Base
Methods included from Plumber::HtmlOptions
#merge_html_options, #merge_string_option, #normalize_part
Constructor Details
This class inherits a constructor from StimulusPlumbers::Components::Plumber::Base
Instance Method Details
#render(icon_options: nil, **kwargs) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/stimulus_plumbers/components/date_picker/navigator.rb', line 7 def render(icon_options: nil, **kwargs) = ( { classes: theme.resolve(:calendar_navigation_navigator).fetch(:classes, "") }, kwargs ) if .nil? template.content_tag(:button, nil, **) else template.content_tag(:button, icon(), **) end end |