Module: Waiable::Base::TextField

Extended by:
ActiveSupport::Concern
Includes:
CommonMethods
Defined in:
lib/action_view/text_field.rb

Constant Summary

Constants included from CommonMethods

CommonMethods::TAG_PREFIXES

Instance Method Summary collapse

Methods included from CommonMethods

#add_aria_describedby_values, #add_aria_labelledby_for_values, #options_for_rendering, #required_field?

Instance Method Details

#aria_content(options) ⇒ Object



17
18
19
20
21
22
23
24
25
# File 'lib/action_view/text_field.rb', line 17

def aria_content(options)        
  aria = ""        
  if options["maxlength"]
    aria = tag("input", options) + (:div,  "You can enter maximum " + options["maxlength"] + " characters in this field", id: "maxlength_#{options["id"]}", style: "display:none")
  else
    aria = tag("input", options)
  end
  aria
end