Module: ActiveScaffold::Bridges::Chosen::Helpers::SearchColumnHelpers

Defined in:
lib/active_scaffold/bridges/chosen/helpers.rb

Instance Method Summary collapse

Instance Method Details

#active_scaffold_search_chosen(column, options, ui_options: column.options) ⇒ Object



36
37
38
39
# File 'lib/active_scaffold/bridges/chosen/helpers.rb', line 36

def active_scaffold_search_chosen(column, options, ui_options: column.options)
  options[:class] << ' chosen'
  active_scaffold_search_select(column, options, ui_options: ui_options)
end

#active_scaffold_search_multi_chosen(column, options, ui_options: column.options) ⇒ Object



41
42
43
44
45
46
# File 'lib/active_scaffold/bridges/chosen/helpers.rb', line 41

def active_scaffold_search_multi_chosen(column, options, ui_options: column.options)
  options[:class] << ' chosen'
  options[:multiple] = true
  options[:'data-placeholder'] = ui_options[:placeholder] || as_(:_select_)
  active_scaffold_search_select(column, options, ui_options: ui_options)
end