Class: StimulusPlumbers::Components::Calendar::Month::Turbo::DaysOfWeek

Inherits:
Plumber::Base
  • Object
show all
Defined in:
lib/stimulus_plumbers/components/calendar/month/turbo/days_of_week.rb

Constant Summary

Constants included from Plumber::HtmlOptions

Plumber::HtmlOptions::STIMULUS_SPACEJOIN_KEYS

Instance Attribute Summary

Attributes inherited from Plumber::Base

#template

Instance Method Summary collapse

Methods inherited from Plumber::Base

#initialize, #theme

Methods included from Plumber::HtmlOptions

#extract_classes, #merge_data_options, #merge_html_options, #merge_string_option, #normalize_part

Constructor Details

This class inherits a constructor from StimulusPlumbers::Plumber::Base

Instance Method Details

#render(**kwargs) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/stimulus_plumbers/components/calendar/month/turbo/days_of_week.rb', line 9

def render(**kwargs)
  html_options = merge_html_options(
    { classes: theme.resolve(:calendar_days_of_week).fetch(:classes, "") },
    kwargs
  )
  template.(:div, **html_options) { days_of_week }
end