Class: Form::Combobox::Choice
- Inherits:
-
UI::Base
- Object
- UI::Base
- Form::Combobox::Choice
- Defined in:
- app/views/form/combobox/choice.rb
Instance Method Summary collapse
Instance Method Details
#view_template ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'app/views/form/combobox/choice.rb', line 6 def view_template li role: "option", class: choice_classes, data: { combobox_target: "choice", value: choice.public_send(value_method), action: "mousedown->combobox#preventBlur click->combobox#selectChoice" } do if text_method.respond_to?(:call) text_method.call(choice) else choice.public_send(text_method) end end end |