Module: StimulusPlumbers::Components::Combobox::Time::Metadata
- Defined in:
- lib/stimulus_plumbers/components/combobox/time.rb
Class Method Summary collapse
- .haspopup ⇒ Object
- .popup_id_for(panel_id) ⇒ Object
- .stimulus_data(_panel_id, options) ⇒ Object
- .trigger_icon ⇒ Object
- .trigger_options ⇒ Object
Class Method Details
.haspopup ⇒ Object
16 17 18 |
# File 'lib/stimulus_plumbers/components/combobox/time.rb', line 16 def haspopup "dialog" end |
.popup_id_for(panel_id) ⇒ Object
20 21 22 |
# File 'lib/stimulus_plumbers/components/combobox/time.rb', line 20 def popup_id_for(panel_id) panel_id end |
.stimulus_data(_panel_id, options) ⇒ Object
32 33 34 35 36 37 |
# File 'lib/stimulus_plumbers/components/combobox/time.rb', line 32 def stimulus_data(_panel_id, ) { input_formatter_format_value: "time", input_formatter_options_value: { format: .fetch(:format, :h12) }.to_json } end |
.trigger_icon ⇒ Object
24 25 26 |
# File 'lib/stimulus_plumbers/components/combobox/time.rb', line 24 def trigger_icon "clock" end |
.trigger_options ⇒ Object
28 29 30 |
# File 'lib/stimulus_plumbers/components/combobox/time.rb', line 28 def {} end |