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 |
# File 'lib/stimulus_plumbers/components/combobox/time.rb', line 16 def haspopup = "dialog" |
.popup_id_for(panel_id) ⇒ Object
17 |
# File 'lib/stimulus_plumbers/components/combobox/time.rb', line 17 def popup_id_for(panel_id) = panel_id |
.stimulus_data(_panel_id, options) ⇒ Object
21 22 23 24 25 26 |
# File 'lib/stimulus_plumbers/components/combobox/time.rb', line 21 def stimulus_data(_panel_id, ) { input_formatter_format_value: "time", input_formatter_options_value: { format: .fetch(:format, :h12) }.to_json } end |
.trigger_icon ⇒ Object
18 |
# File 'lib/stimulus_plumbers/components/combobox/time.rb', line 18 def trigger_icon = "clock" |
.trigger_options ⇒ Object
19 |
# File 'lib/stimulus_plumbers/components/combobox/time.rb', line 19 def = {} |