Module: Waiable::Base::TextField
- Extended by:
- ActiveSupport::Concern
- Includes:
- CommonMethods
- Defined in:
- lib/action_view/text_field.rb
Constant Summary
Constants included from CommonMethods
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() aria = "" if ["maxlength"] aria = tag("input", ) + content_tag(:div, "You can enter maximum " + ["maxlength"] + " characters in this field", id: "maxlength_#{options["id"]}", style: "display:none") else aria = tag("input", ) end aria end |