Method: Formular::Element::Modules::Wrapped::InstanceMethods#hint

Defined in:
lib/formular/element/modules/wrapped.rb

#hintObject



54
55
56
57
58
59
60
# File 'lib/formular/element/modules/wrapped.rb', line 54

def hint
  return '' unless has_hint?
  hint_opts = hint_options.dup
  hint_opts[:content] = hint_text
  hint_opts[:id] = hint_id # FIXME: this should work like a standard set_default
  builder.hint(hint_opts).to_s
end