Method: Kiss::Form::Field#element_html

Defined in:
lib/kiss/form/field.rb

#element_html(attrs = {}) ⇒ Object



185
186
187
188
189
190
191
192
193
194
195
# File 'lib/kiss/form/field.rb', line 185

def element_html(attrs = {})
  attrs.merge!(
    :value => value_string
  )
  
  if width = @_format.input_width
    attrs[:style] ||= "width: #{width}px"
  end
  
  @_currency.to_s + input_tag_html(attrs) + tip_html(attrs)
end