Class: StimulusPlumbers::Components::Calendar::Month::Turbo::DaysOfWeek
- Inherits:
-
Plumber::Base
- Object
- Plumber::Base
- StimulusPlumbers::Components::Calendar::Month::Turbo::DaysOfWeek
- Defined in:
- lib/stimulus_plumbers/components/calendar/month/turbo/days_of_week.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(**kwargs) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/stimulus_plumbers/components/calendar/month/turbo/days_of_week.rb', line 9 def render(**kwargs) = ( { classes: theme.resolve(:calendar_days_of_week).fetch(:classes, "") }, kwargs ) template.content_tag(:div, **) do template.content_tag(:div, role: "row") do template.safe_join( day_names.map do |abbr, full| template.content_tag(:span, abbr, role: "columnheader", abbr: full) end ) end end end |