Class: PhlexKit::CalendarDays
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::CalendarDays
- Defined in:
- app/components/phlex_kit/calendar/calendar_days.rb
Overview
s for the five day states (disabled / selected / today / current month / other month). The controller picks one per day and interpolates {day} / {dayDate} / {state} — state carries the extra range/booked classes (range-start / range-end / in-range / booked). See calendar.rb.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ CalendarDays
constructor
A new instance of CalendarDays.
- #view_template ⇒ Object
Methods inherited from BaseComponent
Constructor Details
#initialize(**attrs) ⇒ CalendarDays
Returns a new instance of CalendarDays.
7 8 9 |
# File 'app/components/phlex_kit/calendar/calendar_days.rb', line 7 def initialize(**attrs) @attrs = attrs end |
Instance Method Details
#view_template ⇒ Object
11 12 13 14 15 16 17 |
# File 'app/components/phlex_kit/calendar/calendar_days.rb', line 11 def view_template render_disabled_date_template render_selected_date_template render_today_date_template render_current_month_date_template render_other_month_date_template end |