2017-10-23 21:01:08 -04:00
|
|
|
# frozen_string_literal: true
|
2009-12-09 15:48:00 -05:00
|
|
|
module SimpleForm
|
2011-12-04 08:57:12 -05: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 12:55:27 -05:00
|
|
|
# output under given circumstances without user input. For example,
|
2013-01-28 16:02:59 -05:00
|
|
|
# the disabled helper always need a disabled: true option given
|
2011-12-04 08:57:12 -05:00
|
|
|
# to the input in order to be enabled. On the other hand, things like
|
2011-12-10 12:55:27 -05:00
|
|
|
# hints can generate output automatically by doing I18n lookups.
|
2009-12-09 15:48:00 -05:00
|
|
|
module Components
|
2013-01-02 11:11:46 -05:00
|
|
|
extend ActiveSupport::Autoload
|
|
|
|
|
|
|
|
autoload :Errors
|
|
|
|
autoload :Hints
|
|
|
|
autoload :HTML5
|
|
|
|
autoload :LabelInput
|
|
|
|
autoload :Labels
|
|
|
|
autoload :MinMax
|
|
|
|
autoload :Maxlength
|
2016-08-18 22:43:25 -04:00
|
|
|
autoload :Minlength
|
2013-01-02 11:11:46 -05:00
|
|
|
autoload :Pattern
|
|
|
|
autoload :Placeholders
|
|
|
|
autoload :Readonly
|
2009-12-09 15:48:00 -05:00
|
|
|
end
|
2011-08-30 19:51:53 -04:00
|
|
|
end
|