2017-10-24 01:01:08 +00:00
|
|
|
# frozen_string_literal: true
|
2009-12-09 20:48:00 +00:00
|
|
|
module SimpleForm
|
2011-12-04 13:57:12 +00:00
|
|
|
# Components are a special type of helpers that can work on their own.
|
|
|
|
# For example, by using a component, it will automatically change the
|
2011-12-10 17:55:27 +00:00
|
|
|
# output under given circumstances without user input. For example,
|
2013-01-28 21:02:59 +00:00
|
|
|
# the disabled helper always need a disabled: true option given
|
2011-12-04 13:57:12 +00:00
|
|
|
# to the input in order to be enabled. On the other hand, things like
|
2011-12-10 17:55:27 +00:00
|
|
|
# hints can generate output automatically by doing I18n lookups.
|
2009-12-09 20:48:00 +00:00
|
|
|
module Components
|
2013-01-02 16:11:46 +00:00
|
|
|
extend ActiveSupport::Autoload
|
|
|
|
|
|
|
|
autoload :Errors
|
|
|
|
autoload :Hints
|
|
|
|
autoload :HTML5
|
|
|
|
autoload :LabelInput
|
|
|
|
autoload :Labels
|
|
|
|
autoload :MinMax
|
|
|
|
autoload :Maxlength
|
2016-08-19 02:43:25 +00:00
|
|
|
autoload :Minlength
|
2013-01-02 16:11:46 +00:00
|
|
|
autoload :Pattern
|
|
|
|
autoload :Placeholders
|
|
|
|
autoload :Readonly
|
2009-12-09 20:48:00 +00:00
|
|
|
end
|
2011-08-30 23:51:53 +00:00
|
|
|
end
|