Module: Components::ComboboxHelper
- Defined in:
- app/helpers/components/combobox_helper.rb
Instance Method Summary collapse
Instance Method Details
#combobox_trigger(&block) ⇒ Object
7 8 9 |
# File 'app/helpers/components/combobox_helper.rb', line 7 def combobox_trigger(&block) content_for :trigger, capture(&block) if block end |
#render_combobox(items, &block) ⇒ Object
2 3 4 5 |
# File 'app/helpers/components/combobox_helper.rb', line 2 def render_combobox(items, &block) content = capture(&block) if block render "components/ui/combobox", items:, content: end |