Class: StimulusPlumbers::Components::Combobox::Date

Inherits:
Plumber::Base
  • Object
show all
Defined in:
lib/stimulus_plumbers/components/combobox/date.rb,
lib/stimulus_plumbers/components/combobox/date/navigator.rb,
lib/stimulus_plumbers/components/combobox/date/navigation.rb

Defined Under Namespace

Modules: Metadata Classes: Navigation, Navigator

Constant Summary collapse

STIMULUS_CONTROLLER =
"combobox-date"
CALENDAR_OUTLET =
"#{STIMULUS_CONTROLLER}-calendar-month-outlet".freeze
STIMULUS_ACTION =
[
  "calendar-observer:selected->#{STIMULUS_CONTROLLER}#onSelect",
  "#{STIMULUS_CONTROLLER}:selected->#{Combobox::STIMULUS_CONTROLLER}#onSelect",
  "#{STIMULUS_CONTROLLER}:selected->#{Components::Popover::STIMULUS_CONTROLLER}#closeOnSelect"
].join(" ").freeze

Instance Attribute Summary

Attributes inherited from Plumber::Base

#template

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Plumber::Base

#initialize, #theme

Methods included from Plumber::Renderer

#set_slots, #slot_block_for, #slot_kwargs_for, #slot_renderable?

Methods included from Plumber::Options::Aria

#labelled_aria

Methods included from Plumber::Options::Html

#merge_html_options

Constructor Details

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

Class Method Details

.calendar_id_for(panel_id) ⇒ Object



15
16
17
# File 'lib/stimulus_plumbers/components/combobox/date.rb', line 15

def self.calendar_id_for(panel_id)
  [panel_id, "calendar"].compact.join("_")
end

Instance Method Details

#renderObject



29
# File 'lib/stimulus_plumbers/components/combobox/date.rb', line 29

def render(...) = render_date(...)