Class: StateFilterPickerTomSelectInput

Inherits:
TomSelectInput
  • Object
show all
Defined in:
app/inputs/state_filter_picker_tom_select_input.rb

Overview

State Filter Picker Tom Select Input.

Instance Method Summary collapse

Methods inherited from TomSelectInput

#input_html_classes

Instance Method Details

#collectionObject



9
10
11
# File 'app/inputs/state_filter_picker_tom_select_input.rb', line 9

def collection
  State.states_for_select
end

#input(wrapper_options = nil) ⇒ Object



4
5
6
7
# File 'app/inputs/state_filter_picker_tom_select_input.rb', line 4

def input(wrapper_options = nil)
  input_html_options[:multiple] = true if input_html_options[:multiple].nil?
  super
end