Method: Autocomplete::OptionComponent#system_arguments
- Defined in:
- app/components/polaris/autocomplete/option_component.rb
#system_arguments ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'app/components/polaris/autocomplete/option_component.rb', line 16 def system_arguments @system_arguments.tap do |args| args[:label] = @label args[:wrapper_arguments] ||= {} args[:wrapper_arguments][:data] ||= {} args[:wrapper_arguments][:data][:polaris_autocomplete_target] = "option" args[:wrapper_arguments][:data][:label] = @label args[:data] ||= {} prepend_option(args[:data], :action, "polaris-autocomplete#select") end end |