Class: PhlexKit::CalendarBody
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::CalendarBody
- Defined in:
- app/components/phlex_kit/calendar/calendar_body.rb
Overview
The
5 6 7 |
# File 'app/components/phlex_kit/calendar/calendar_body.rb', line 5 def initialize(**attrs) @attrs = attrs end |
Instance Method Details
#view_template ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/components/phlex_kit/calendar/calendar_body.rb', line 9 def view_template table(**mix({ class: "pk-calendar-body", data: { phlex_kit__calendar_target: "calendar", # Delegated arrow-key/Home/End navigation for the day grid (the # buttons are re-rendered wholesale, so the action lives here). action: "keydown->phlex-kit--calendar#onKeydown" } }, @attrs)) end |