Class: PostalCodePickerInput
- Inherits:
-
TomSelectInput
- Object
- SimpleForm::Inputs::CollectionSelectInput
- TomSelectInput
- PostalCodePickerInput
- Defined in:
- app/inputs/postal_code_picker_input.rb
Instance Method Summary collapse
Methods inherited from TomSelectInput
#collection, #input_html_classes
Instance Method Details
#input(wrapper_options = nil) ⇒ Object
2 3 4 5 6 7 |
# File 'app/inputs/postal_code_picker_input.rb', line 2 def input( = nil) [:data] ||= {} [:data]['tom-select-suggest-url-value'] = template.postal_code_lookup_addresses_path([:query_params].presence || {}) [:data]['tom-select-min-chars-value'] = 2 super() end |