Class: PhlexKit::CalendarNext
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::CalendarNext
- Defined in:
- app/components/phlex_kit/calendar/calendar_next.rb
Overview
Next-month button, pinned to the header's right edge. See calendar.rb.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ CalendarNext
constructor
A new instance of CalendarNext.
- #view_template ⇒ Object
Methods inherited from BaseComponent
Constructor Details
#initialize(**attrs) ⇒ CalendarNext
Returns a new instance of CalendarNext.
4 5 6 |
# File 'app/components/phlex_kit/calendar/calendar_next.rb', line 4 def initialize(**attrs) @attrs = attrs end |
Instance Method Details
#view_template ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/components/phlex_kit/calendar/calendar_next.rb', line 8 def view_template (**mix({ type: :button, name: "next-month", class: "pk-calendar-next", aria: { label: "Go to next month" }, data: { action: "click->phlex-kit--calendar#nextMonth" } }, @attrs)) do icon end end |