Class: StimulusPlumbers::Components::Combobox::Date
- Inherits:
-
Plumber::Base
- Object
- Plumber::Base
- StimulusPlumbers::Components::Combobox::Date
- 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
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Plumber::Base
Methods included from Plumber::Renderer
#set_slots, #slot_block_for, #slot_kwargs_for, #slot_renderable?
Methods included from Plumber::Options::Aria
Methods included from Plumber::Options::Html
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
#render ⇒ Object
29 |
# File 'lib/stimulus_plumbers/components/combobox/date.rb', line 29 def render(...) = render_date(...) |