class ExtForm::Helpers::Tags::AutoComplete

Public Class Methods

field_type() click to toggle source
# File lib/ext_form/helpers/tags/auto_complete.rb, line 18
def self.field_type
  'text'
end

Public Instance Methods

render() click to toggle source
Calls superclass method
# File lib/ext_form/helpers/tags/auto_complete.rb, line 6
def render
  output = super

  html_options = {}
  add_default_name_and_id(html_options)

  output << @template_object.javascript_tag do
    "$(function(){$('##{html_options['id']}').trigger('auto_complete_load');});".html_safe
  end
  output.html_safe
end