Class: Select2::FieldController

Inherits:
Volt::ModelController
  • Object
show all
Defined in:
app/select2/controllers/field_controller.rb

Instance Method Summary collapse

Instance Method Details

#index_readyObject



3
4
5
# File 'app/select2/controllers/field_controller.rb', line 3

def index_ready
  `$(#{first_element}).select2(#{settings_from_attrs})`
end

#multiple_readyObject



7
8
9
# File 'app/select2/controllers/field_controller.rb', line 7

def multiple_ready
  `$(#{first_element}).select2(#{settings_from_attrs})`
end